GoldenOwlAsia / react-native-twitter-signin

MIT License
167 stars 303 forks source link

Stopped working on IOS without any error #169

Closed tamimaj closed 3 years ago

tamimaj commented 3 years ago

It was working properly on both platform till today, I tested it on IOS when click the button to trigger the login process, nothing happens, I started investigating where the bug is, my code still the same since months, I putted some console.log statements before all calls into this func, and the whole block is wrapped with try/catch block.

The problem is after "await RNTwitterSignIn.init(credentials)" nothing get excuted, without any error, or anything in the debug of Xcode. I have tried everything, Updated the latest patches, rebuilt like 10 times in two iphones and all simulators, still can't know why this is happening, on android working like charm

can anyone help me with that please?

tamimaj commented 3 years ago

Guys, I will leave it as closed, the bug was I was putting init method inside async/await, on android works fine but on IOS never get resolved, so just delete await keyword before RNTwitterSignIn.init(YOUR credentials), and done.