A
A
Andry0072022-03-31 01:03:12
Mobile development
Andry007, 2022-03-31 01:03:12

How to fix crash in React native app on Android?

Hello guys, I assembled a react-native application, launched it on android, after I switch to another screen, a crash occurs, with such a log. Who faced, help please.
Log:

java.lang.IllegalStateException: java.lang.NullPointerException: Attempt to invoke interface method 'boolean versioned.host.exp.exponent.modules.api.reanimated.layoutReanimation.NativeMethodsHolder.isLayoutAnimationEnabled()' on a null object reference
at com .facebook.react.bridge.ReactContext.handleException(ReactContext.java:6)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:2)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher .doFrame(ReactChoreographer.java:7)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:1)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1074)
at android.view.Choreographer.doCallbacks( Choreographer.java:897)
at android.view.Choreographer.doFrame(Choreographer.java:822)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1061)
at android.os.Handler.handleCallback(Handler.java :938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8056)
at java .lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'boolean versioned.host.exp.exponent.modules.api.reanimated.layoutReanimation.NativeMethodsHolder.isLayoutAnimationEnabled()' on a null object reference
at versioned.host.exp.exponent.modules.api.reanimated.layoutReanimation. AnimationsManager.isLayoutAnimationEnabled(AnimationsManager.java:1)
at versioned.host.exp.exponent.modules.api.reanimated.layoutReanimation.ReaLayoutAnimator.isLayoutAnimationEnabled(ReanimatedNativeHierarchyManager.java:2)
at
com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:1)
at com .facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:18)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:10)
at com.facebook.react.uimanager.UIViewOperationQueue.access$2600 (UIViewOperationQueue.java:1)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:6)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:1)
... 13 more

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question