react-native-modalize
react-native-modalize copied to clipboard
Issue with input inside modalize
Describe the bug I have created a modalize with input and submit button. When the input has focused, the keyboard shows up, and when I press the submit button, first it closes the keyboard, not executing the onPress function. Then when the keyboard is down, I can use the onPress function normally
Reproduce
i have the same annoying problem, did you find any solution for it? @cuongnv-dev
@cuongnv-dev @MursiDirect you need to pass this in modalize
scrollViewProps={{ keyboardShouldPersistTaps: "handled", }}
@cuongnv-dev @MursiDirect you need to pass this in modalize
scrollViewProps={{ keyboardShouldPersistTaps: "handled", }}
Not work for me.
I have a similar issue where if the modal is set to alwaysOpen
and then I open it up via a button press using onPress={() => modalizeRef.current.open('top')}
it requires 2 taps before my content will start scrolling. This is not an issue when I open the modal by swiping up. I also came to the conclusion that scrollViewProps={{ keyboardShouldPersistTaps: "handled", }}
would be my fix but it does not fix it.
I have a similar issue where if the modal is set to
alwaysOpen
and then I open it up via a button press usingonPress={() => modalizeRef.current.open('top')}
it requires 2 taps before my content will start scrolling. This is not an issue when I open the modal by swiping up. I also came to the conclusion thatscrollViewProps={{ keyboardShouldPersistTaps: "handled", }}
would be my fix but it does not fix it.
Thanks, this helped me a lot!