React Native app crashes when login

AnderZilla

I'm having troble with my app, this app is react native and everything is works well, but in production it's crashes on login. On Dev mode, on my phone it's okay, only on production crashes.

I tried some solutions that I found here in stackOverflow but none of them helped in fixing the bug. The first error is a normal firebase connection and get uid for user. I can't fix this and it's a simple connection... help please!!

This is the error:

com.facebook.react.common.JavascriptException: null is not an object (evaluating 'l.currentUser.uid'), stack:
value@306:2672
onPress@306:6430
touchableHandlePress@174:1566
_performSideEffectsForTransition@167:8505
_receiveSignal@167:7292
touchableHandleResponderRelease@167:4757
g@41:296
invokeGuardedCallback@41:496
invokeGuardedCallbackAndCatchFirstError@41:611
A@41:2410
D@41:3172
U@41:2969
<unknown>@41:15497
batchedUpdates@41:72147
Ie@41:14848
ze@41:15343
receiveTouches@41:16180
value@18:3582
<unknown>@18:1067
value@18:3009
value@18:1039

    at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
    at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
    at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
    at android.os.Handler.handleCallback(Handler.java:815)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
    at android.os.Looper.loop(Looper.java:207)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
    at java.lang.Thread.run(Thread.java:818)

Thanks

Anderson - LógikaWeb

AnderZilla

old version problem!

First the problem it's a empty variable. I changed a route and fix the code error in props. I update my ambient and all works fine with 0.61 version.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

React Native: Standalone, Expo built app on Android crashes when using Facebook login (works on iOS)

React Native Facebook login button crashes app in iOS Simulator

React Native: App crashes in simulator only when debugging is on and only on Android

react native - app crashes when goes in background (no error in log)

React-native iOS app crashes when taking picture

Debugging app crashes in react native

React native android app crashes in assemble release build when use react-native-device-info module

React Native FBSDK Login - Login with app fails

Axios with react native not returning document and crashes app

React Native: Android app crashes, onNewIntent

React Native crashes during app:processDebugManifest

AsyncStorage reference crashes react native app on iOS

React Native Expo App crashes in Production mode

react-native-maps production: app crashes when opening basic <Mapview/>

React App crashes when running the production build

AWS Amplify currentAuthenticatedUser is null after FB Login in React Native, but when app is reloaded, currentAuthenticatedUser returns valid user

Firebase Auth Login and Signup app crashes when button clicked

iPhone app crashes when it automatically tries to login to a deleted account

react native: react-navigation crashes when navigating with headerRight

Android React Native app crashes on getUserMedia WebRTC call

React-Native ios App crashes without report

android app fully work in debug but crashes in release [ react native ]

React-Native production app crashes all of sudden

React Native (iOS) app loads nicely on wifi; crashes on LTE/cell

Using base64 image strings for an app in React Native crashes

React-Native run-android app crashes immediately

React Native 0.57 Android app crashes on Launch in release mode

React-Native ios App crashes on my phone

Facebook Audience Network ads App crashes when Native ad is loading