and encountered strange behavior. Steps to reproduce:
scroll view down
focus TextInput:
keyboard appears
view scrolls under the input
press TouchableOpacity:
keyboard disappears
view scrolls up to the top, TextInput goes off screen
alert appears
press OK:
alert disappears
keyboard appears
view scrolls under the input
Expected behavior:
scroll view down
focus TextInput:
keyboard appears
view scrolls under the input
press TouchableOpacity:
keyboard disappears
view scrolls up, but not TextInput is still visible
alert appears
press OK:
alert disappears
keyboard appears
view scrolls under the input
Diving into code shows that 'keyboardWillHide' fired twice on calling Alert.alert. That causes defaultResetScrollToCoords to be nulled after first 'keyboardWillHide' and the second 'keyboardWillHide' causes scrollToPosition(0, 0, true).
So, guys, there is a way to handle this case? Looks like that it's a bug of Alert, because opening RNModal fires 'keyboardWillHide' only once, but googling gives no answer..
I'm using KASV like this:
and encountered strange behavior. Steps to reproduce:
Expected behavior:
Diving into code shows that 'keyboardWillHide' fired twice on calling Alert.alert. That causes defaultResetScrollToCoords to be nulled after first 'keyboardWillHide' and the second 'keyboardWillHide' causes scrollToPosition(0, 0, true).
So, guys, there is a way to handle this case? Looks like that it's a bug of Alert, because opening RNModal fires 'keyboardWillHide' only once, but googling gives no answer..