I want to show my custom keyboard component when an input field is press. I want to prevent the system default keyboard from getting triggered at all.
I have tried dismissing the keyboard on onFocus but this triggers the keyboard and then dismisses the keyboard.
<TextInput placeholder="type here" onFocus={Keyboard.dismiss} /> I have tired wrapping the TextInput inside TouchableWithoutFeedback but this solution doesn't work.
<TouchableWithoutFeedback onPress={() => Keyboard.dismiss()} accessible={false} > <View> <TextInput placeholder="type here" /> </View> </TouchableWithoutFeedback> Any ideas how can I achieve the desired results?
TextInputfor that. You could just put aTextinsideTouchableWithoutFeedbackwhich triggers the keyboard, save your custom keyboard input in a state or something and then pass the value toTextTextcomponent won't behave likeTextInput.