You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though the components passed into component={} are properly default exported, and verified with typeof === 'function', the SceneView still receives undefined and throws this error.
This occurs even after:
Clearing Metro bundler cache
Ensuring correct babel-plugin-module-resolver and tsconfig alias alignment
Verifying all components exist and export correctly
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
Check the render method of `SceneView`.
at renderWithHooks
at mountIndeterminateComponent
at beginWork
...
at SceneView (created by NativeStackViewInner)
at Suspense (created by Freeze)
at Freeze (created by DelayedFreeze)
at DelayedFreeze (created by NativeStackViewInner)
Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.79.1. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
@chooseongwoo Thanks for the issue. +1 to what @mateoguzmana said.
This looks more a react-navigation issue first. Please open the issue in their repository first. If that happens to be a bug in React Native, we will work together to fix the issue.
Description
When using @react-navigation/native-stack with React Native 0.79.0, a fatal crash occurs in both Android and iOS:
Even though the components passed into component={} are properly default exported, and verified with typeof === 'function', the SceneView still receives undefined and throws this error.
This occurs even after:
Steps to reproduce
Set up a new React Native project (v0.79.0)
Install
@react-navigation/native
,@react-navigation/native-stack
Create a screen
RegisterScreen.tsx
with:Add to navigator:
Run
yarn android
oryarn ios
App crashes before rendering
React Native Version
0.79.0
Affected Platforms
Runtime - iOS, Runtime - Android, Build - MacOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/chooseongwoo/spot
Screenshots and Videos
The text was updated successfully, but these errors were encountered: