Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onpress not working when textinput isfocused in react native

<ScrollView keyboardShouldPersistTaps='handled' >
  //Other Components

  <Button onPress={() => {
    Keyboard.dismiss();
    //Your logic
  }}/>

</ScrollView>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onpress #working #textinput #isfocused #react #native
ADD COMMENT
Topic
Name
9+3 =