App crash when i click textinput then i click btn to call authorize function
This is err:
Help me please!
same here +1
I'm also seeing this crasher. It appears to occur if the textInput has been given focus and has a onChangeText callback set.
one more note: I met this issues only in IOS, Android work fine
@winglonelion are you using the version published in npm? I noticed that a PR to fix #188 was accepted, and it might be the resolution for this issue. I’m trying out the master branch today to confirm:
$ npm i fullstackreact/react-native-oauth#master --save
Note that you'll still need to patch the swapped if statement in OAuthManager.m (I think there are at least two open PRs for that, including #157)
In my case, app only crash when vitual Keyboard exist: And i think it has been mention in React Native release Note 0.52.0
Fix a crash when keyboard is visible and bridge reload happens on iOS (d9c6585 by @fromcelticpark) .
I have not try RN 0.52.0 yet but i think it is my problem.
I've submitted #207 with a fix for this. Basically, the viewController needs to be presented on the main thread to prevent the crash once the keyboard has been displayed (such as when a TextInput component has been given focus).
thanks, @stonehippo. I will try this and report you soon