Description
Is this a bug report?
Yeah.
Have you read the Contributing Guidelines?
Yeah.
Environment
Environment:
OS: macOS High Sierra 10.13.1
Node: 8.9.2
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.50.3 => 0.50.3
Steps to Reproduce
- Have Android phone
- Add
LayoutAnimation
to some of your components - App crashes randomly
Expected Behavior
The UIImplementation
is trying to add some View
which is not there yet.
Actual Behavior
Logs:
com.facebook.react.uimanager.IllegalViewOperationException Trying to add unknown view tag: 430
UIImplementation.java:396 com.facebook.react.uimanager.UIImplementation.setChildren
UIManagerModule.java:310 com.facebook.react.uimanager.UIManagerModule.setChildren
Method.java:-2 java.lang.reflect.Method.invoke
JavaMethodWrapper.java:363 com.facebook.react.bridge.JavaMethodWrapper.invoke
JavaModuleWrapper.java:162 com.facebook.react.bridge.JavaModuleWrapper.invoke
NativeRunnable.java:-2 com.facebook.react.bridge.queue.NativeRunnable.run
Handler.java:789 android.os.Handler.handleCallback
Handler.java:98 android.os.Handler.dispatchMessage
MessageQueueThreadHandler.java:31 com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage
Looper.java:164 android.os.Looper.loop
MessageQueueThreadImpl.java:194 com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run
Thread.java:764 java.lang.Thread.run
Backstory
I have developed with RN for over a year now. And this crash has been there always. Some people say it is related to LayoutAnimation but I have gotten it already before that. Recently there were fix commits to similar issue f2c6877 But I think they don't fix this because looks like the lines that can have this crash are here: https://github.com/facebook/react-native/search?utf8=%E2%9C%93&q=%22Trying+to+add%22&type=
This crash has been so long in RN so maybe it would be time to fix it? Tell me if there is anything I could do for help :)
Reproducible Demo
Unfortenately I can't reproduce this on my Android :(