uiexplorer | React Native official UIExplorer example app | Frontend Framework library
kandi X-RAY | uiexplorer Summary
kandi X-RAY | uiexplorer Summary
React Native official UIExplorer example app
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uiexplorer
uiexplorer Key Features
uiexplorer Examples and Code Snippets
Community Discussions
Trending Discussions on uiexplorer
QUESTION
I'm trying to create a passcode protected screen. The screen will uses 4 numeric input as the passcode.
The way I'm doing this is create a TextInput Component and call it 4 times in my main screen.
The problem I'm having is the TextInputs will not focus on the next one as I type the value of the previous TextInput.
I'm using refs for all PasscodeTextInput component (I've been informed that it is a legacy method but I do not know any other way, alas).
Tried this method(without creating my own component), no luck too. METHOD
index.ios.js
...ANSWER
Answered 2017-Feb-21 at 16:29I think the issue is that onSubmitEditing
is when you hit the "return" or "enter" key on the regular keyboard... there is not one of those buttons on the keypad.
Assuming you want each input to only have one character, you could look at the onChangeText
and then check if text has length 1 and call focus if the length is indeed 1.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uiexplorer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page