Linked Questions
16 questions linked to/from Hide keyboard in react-native
32
votes
4
answers
21k
views
Dismiss Keyboard React-Native [duplicate]
Is there a simple way to hide the iOS keyboard? I want to force it shut in a few specific scenarios that don't necessarily require focusing another view. i.e. like a specific response from the server.
2
votes
0
answers
77
views
Is that possible to force keyboard gone immediately in React Native? [duplicate]
Is there anyway to hide keyboard immediately, like set index -1 or whatever?
Currently, after keyboard.dismiss, you need to wait for a bit time to fully hide keyboard. Thanks.
71
votes
11
answers
141k
views
Unfocus a TextInput in React Native
I'm building an Android app with React Native.
How can you force a TextInput to "unFocus", meaning the cursor is blinking inside the text field. There are functions for isFocused() and onFocus(), ...
14
votes
10
answers
48k
views
How to disable keyboard in react native
I created a screen keyboard component that I want to disable the platform's keyboard, how I can disable it?
<TextInput
secureTextEntry
ref="Pin"
selectionColor="#656565"
...
8
votes
2
answers
17k
views
blur <TextInput/> by tapping outside of it, doesn't work in react native
I have <TextInput/> and I would like to get to blur it and toggle the keyboard when tapping outside the <TextInput/> I have tried this solution but without any luck.
import React, { ...
6
votes
3
answers
5k
views
How to avoid double tap when keyboard is open on Native Base?
This is question regarding Native Base framework for React Native applications:
Imagine a subscribe screen; 1 text input and a subscribe button;
After I type my email address I want to tap on ...
11
votes
1
answer
12k
views
Lose focus and dismiss keyboard on clicking outside of the TextInput field in react native?
I have already researched about it and found this post:
react-native: hide keyboard
But this didn't work for me. When I touch the portion of the screen thats outside the text input field, I was ...
1
vote
1
answer
8k
views
Closing popup on clicking outside component
Before wrote this post, I saw this post, but i'm not able to link all of the code to mine.
This is my toggle component:
<ToggleContent
toggle={show => (
<div>
...
1
vote
1
answer
3k
views
TextInput auto scroll to bottom in multiline in react native
I have a TextInput component, and i want to make text visible when keyboard is on, by default, android will have this, but i don't know why the multiline TextInput just scroll down to the bottom of ...
1
vote
3
answers
893
views
Keyboard Hiding in react-native
I just followed the answer from the link react-native: hide keyboard
But the keyboard is coming as flash for fraction of seconds then it is dismissing. Is there is a way to avoid keyboard totally.
-1
votes
3
answers
2k
views
How to handle TextInput in scrollView nested in View react native
I have a code like this:
<View>
<View></View>
<ScrollView>
<View>
<TextInput/>
</View>
</ScrollView>
<View></View>
&...
2
votes
1
answer
714
views
How to dismiss keyboard and handle Touchable press in single tap - React Native
I have the following simplified React Native code:
<ScreenContainer>
<View>
<TextInput
value={query}
onChangeText={handleInputChange}
autoFocus={true}
...
1
vote
2
answers
877
views
How can I close system keyboard in react native
I am facing the problem that there seems to be no api for me to close system keyboard. In my code, the component render method looks like this:
<TouchableOpacity onPress={()=>{alert("1111")}}&...
0
votes
0
answers
748
views
How to prevent numeric keyboard showing on Android after navigating - react native TextInput
I have a react native TextInput with numeric keyboard, and it is working fine, except that the keyboard shows up again after the submit button has been clicked and it navigates to the next page (...
-1
votes
1
answer
349
views
I can't dismiss my keyboard in my react native app after an alert
I'm currently trying to close the keyboard programmatically:
https://i.sstatic.net/GfY7K.jpg
But it does not work. It actually closes, then reopens when the screen changes, whereas there is no input ...