react-native-oauth icon indicating copy to clipboard operation
react-native-oauth copied to clipboard

App crash when i click textinput then i click btn to call authorize function

Open hth190393 opened this issue 8 years ago • 7 comments

This is err: screen shot 2017-11-23 at 10 17 34 am Help me please!

hth190393 avatar Nov 23 '17 03:11 hth190393

same here +1

Winglonelion avatar Mar 23 '18 09:03 Winglonelion

I'm also seeing this crasher. It appears to occur if the textInput has been given focus and has a onChangeText callback set.

stonehippo avatar May 07 '18 13:05 stonehippo

one more note: I met this issues only in IOS, Android work fine

Winglonelion avatar May 08 '18 08:05 Winglonelion

@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)

stonehippo avatar May 08 '18 11:05 stonehippo

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.

Winglonelion avatar May 08 '18 11:05 Winglonelion

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).

stonehippo avatar May 08 '18 20:05 stonehippo

thanks, @stonehippo. I will try this and report you soon

Winglonelion avatar May 09 '18 02:05 Winglonelion