You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing out react-native-owl and it's great library!
I encountered one strange issue - in my test app I have search input with submit button. Search query is saved in state (with useState). When I press "Search" button, it requests backend and shows results. When I test it with react-native-owl, the query is always empty. I added <Text> with text value and it displays valid value, but when I press submit button and it's empty.
I tried to reproduce it using your demo app https://github.com/FormidableLabs/react-native-owl-demo so I added submit button with onPress={() => Alert.alert('text from state', text)} and it's also empty. When I pressed it manually afterwards (during test) it shows valid text.
I'm testing out
react-native-owl
and it's great library!I encountered one strange issue - in my test app I have search input with submit button. Search query is saved in state (with useState). When I press "Search" button, it requests backend and shows results. When I test it with
react-native-owl
, the query is always empty. I added<Text>
with text value and it displays valid value, but when I press submit button and it's empty.I tried to reproduce it using your demo app https://github.com/FormidableLabs/react-native-owl-demo so I added submit button with
onPress={() => Alert.alert('text from state', text)}
and it's also empty. When I pressed it manually afterwards (during test) it shows valid text.Tested on iOS simulator and Android emulator.
https://github.com/marcinkornek/react-native-owl-demo-test link to
react-native-owl-demo
with changes mentioned below.Please see videos below:
Screen.Recording.2022-11-08.at.09.23.35.mov
Screen.Recording.2022-11-08.at.09.28.11.mov
The text was updated successfully, but these errors were encountered: