似乎是一个更新或其他自然原因导致我的应用程序崩溃。每当我加载具有动画效果的组件或视图(滚动视图,剖面列表等)时,应用程序本身就会崩溃,并出现以下错误。
[tid:com.facebook.react.JavaScript] Invariant Violation: Invariant Violation: Attempt to get native tag from node not marked as "native"
This error is located at:
in AnimatedComponent (at StackViewCard.js:41)
in Card (at createPointerEventsContainer.js:26)
in Container (at StackViewLayout.js:506)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:40)
in RCTView (at View.js:43)
in Transitioner (at StackView.js:19)
in StackView (at createNavigator.js:59)
in Navigator (at createKeyboardAwareNavigator.js:11)
in KeyboardAwareNavigator (at createNavigationContainer.js:376)
in NavigationContainer (at SceneView.js:9)
in SceneView (at createTabNavigator.js:10)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in ResourceSavingScene (at createBottomTabNavigator.js:76)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in TabNavigationView (at createTabNavigator.js:135)
in NavigationView (at createNavigator.js:59)
in Navigator (at createNavigationContainer.js:376)
in NavigationContainer (at SceneView.js:9)
in SceneView (at StackViewLayout.js:481)
in RCTView (at View.js:43)
in AnimatedComponent (at StackViewCard.js:41)
in Card (at createPointerEventsContainer.js:26)
in Container (at StackViewLayout.js:506)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:40)
in RCTView (at View.js:43)
in Transitioner (at StackView.js:19)
in StackView (at createNavigator.js:59)
in Navigator (at createKeyboardAwareNavigator.js:11)
in KeyboardAwareNavigator (at createNavigationContainer.js:376)
in NavigationContainer (at App.js:36)
in Root (at renderApplication.js:32)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in AppContainer (at renderApplication.js:31)
到目前为止,我已经尝试过:
我当前的规格等
答案 0 :(得分:1)
答案显然是反应导航的一个问题,如下所述: https://github.com/react-navigation/react-navigation/issues/4886
我还原了我的反应导航版本
添加纱线react-navigation@2.11.2
并重建,现在可以正常工作了。
答案 1 :(得分:-1)
npm install react-navigation@2.11.2
它可以正常工作,我尝试过并且可以正常工作