Reputation: 119
I don't understand why my code doesn't run the orther devices wheras my code is checked ok in my old device. This is notification:
Invariant Violation: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `SceneView`.
This error is located at:
in SceneView (created by StackViewLayout)
in RCTView (created by View)
in View (created by AnimatedComponent)
in AnimatedComponent (created by Card)
in Card (created by Container)
in Container (created by StackViewLayout)
in RCTView (created by View)
in View (created by StackViewLayout)
in RCTView (created by View)
in View (created by StackViewLayout)
in StackViewLayout (created by withOrientation)
in withOrientation (created by Transitioner)
in RCTView (created by View)
in View (created by Transitioner)
in Transitioner (created by StackView)
in StackView (created by Navigator)
in Navigator (created by KeyboardAwareNavigator)
in KeyboardAwareNavigator (created by NavigationContainer)
in NavigationContainer (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by ExpoRootComponent)
in RootErrorBoundary (created by ExpoRootComponent)
in ExpoRootComponent
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
This error is located at:
in NavigationContainer (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by ExpoRootComponent)
in RootErrorBoundary (created by ExpoRootComponent)
in ExpoRootComponent
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
In my code app.js. The method Screens and View was ok. So what must i do?
Upvotes: 10
Views: 3471
Reputation: 791
I got a similar error when I imported a module in the wrong way, this is wrong:
import {myDefault} from '/modules/my-module.js';
But this is correct:
import myDefault from '/modules/my-module.js';
Upvotes: 1
Reputation: 51
In my Expo SDK 51 project, I encountered this issue "Check the render method of SceneView
". To resolve it, I uninstalled the navigation packages below:
First:
npm uninstall @react-navigation/native @react-navigation/native-stack @react-navigation/stack
Then, I installed the following versions:
npm install @react-navigation/native@^6.1.17 @react-navigation/native-stack@^6.9.26 @react-navigation/stack@^6.3.29
Upvotes: 1