shixiaoquan / react-native-sms-verifycode Goto Github PK
View Code? Open in Web Editor NEWA React Native component for filling in SMS verification codes or passwords, for android and iOS
A React Native component for filling in SMS verification codes or passwords, for android and iOS
表现:设置外层containerStyle宽度为300,格子超出了显示范围
期望格子宽度可以基于外层容器宽度进行计算,而不是根据屏幕宽度
一旦添加了,该属性就会报错,显示 initialCodes.filter is not a function 懒得去搞你的源码了。。。。换一个,再试试,着急赶项目
Hello!
I'm trying to autofill code on boxes, there is a way to do this? (Passing initial value to component)
When I use SMSVerifyCode, the keyboard and password box can not appear at the same time, must click the password box to appear the keyboard, I think the keyboard and password box will appear at the same time, the user experience will be better
If keyboardType = "numeric", "number-pad" and etc. no digits are entered into TextInput.
If keyboardType = "default" everything works as it should.
高度和宽度总是一致
需求:在验证码输入完毕之后发起请求,校验不通过则清除输入的验证码内容。
问题:好像跟请求的响应速度有关系,如响应快的话,内容不会被清空、或者清空了一瞬再恢复。,响应慢的话,内容被清空没有存在问题。
看了源代码,建议作者可以去掉延时方法。将onInputCompleted()写入this.setState()的回调中,则不会再出现这个问题。
请问为什么输入后,删除不了code?
margin设定了无效果啊,亲,因为大部分RN项目都有自己container,直接拿screen的宽带有点不友善啊。这个要在哪里改呢,提示一下下?
会存在可能,在验证码先输入完整,然后再删除掉一位(或者多位) 此时界面上的是没有输入完的验证码 而 或得到的验证码已经是输入完了的 此时点击下一步按钮会 通过前端的验证码验证
Keyboard is showing up but code view doesn't reflect to any numbers entered...
Small investigation get me to the issue with hidden TextInput, once I remove width=0, height=0 from its styles everything start work just fine.
Line 28
"warningTitle: 'Warining',"
The spelling of Warning is wrong.
not working in android
源码里
this.setState(
{
text,
codeArray,
coverBGColorList: this.getBeforeCoverBGColorList(codeArray, verifyCodeLength),
},
() => {
this.timeout = setTimeout(
() => this.setState({
codeArray,
coverBGColorList: this.getCoverBGColorList(codeArray, verifyCodeLength),
}),
500,
);
},
);
虽然不知道这条代码是什么意思,但是里面设置了一个定时器,却未在WIllUnmount里清除,某些情况会出现问题
输入后内容变成隐藏符号!
输入支付密码的情景;
默认的提示框太丑了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.