Closed beetlebum closed 3 years ago
Couldn't find version numbers for the following packages in the issue:
@react-navigation/native
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.io link or link to a GitHub repo under your username).
Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.
@react-navigation/native: ^6.0.0-next.10
"@react-navigation/bottom-tabs@^6.0.0-next.14" "@react-navigation/core@^6.0.0-next.10" "@react-navigation/drawer@6.0.0-next.2" "@react-navigation/elements@^1.0.0-next.13", "@react-navigation/elements@^1.0.0-next.2" "@react-navigation/native@^6.0.0-next.10" "@react-navigation/routers@^6.0.0-next.3" "@react-navigation/stack@^6.0.0-next.20" "react-native-screens@^3.2.0"
Can you provide a repro in a GitHub repo?
import React from 'react'
import { Text } from 'react-native'
import {
NavigationContainer,
useNavigationContainerRef,
} from '@react-navigation/native'
export default function Main() {
const navigationRef = useNavigationContainerRef()
return (
<NavigationContainer ref={navigationRef} theme={navigationTheme}>
<Text>test</Text>
</NavigationContainer>
)
}
@aleppos we have the same code in the example app, so there's not much I can debug here. it'd be helpful if you can provide a repro where it happens so I can check
having the same issue when upgrading from 6.0.0-next.9 to next.10 or next.11, same code didn't change anything in my codebase
I guess this was fixed by in this commit, https://github.com/react-navigation/react-navigation/commit/324ea7181db6b743f512854be267cc9d65975b6f, not having the issue anymore on:
"@react-navigation/elements": "1.0.0-next.16",
"@react-navigation/native": "6.0.0-next.13",
"@react-navigation/stack": "6.0.0-next.24",
Gettng this issue in
"@react-navigation/drawer": "^6.6.2",
"@react-navigation/material-bottom-tabs": "^6.2.15",
"@react-navigation/material-top-tabs": "^6.6.2",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.16",
on iOS
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.
Can we re-open this issue, I'm getting it on ios too
"@react-navigation/material-top-tabs": "^6.6.2",
"@react-navigation/native": "6.1.6",
"@react-navigation/stack": "6.2.0",
Can we re-open this issue, I'm getting it on ios too
"@react-navigation/material-top-tabs": "^6.6.2", "@react-navigation/native": "6.1.6", "@react-navigation/stack": "6.2.0",
are you using reanimated 3?
Getting Same error again using reanimated 3.0.2 and "@react-navigation/bottom-tabs": "6.5.7", "@react-navigation/core": "6.4.8", "@react-navigation/native": "6.1.6", "@react-navigation/stack": "6.3.16",
@beetlebum Any help?
Same problem with reanimated 3.0.2 but removing options from page settings with react navigation works
<Stack.Screen name="DetailTeamScreenFromGlobal" component={DetailTeamScreen} // delete this options options={({ navigation, route }) => ({ headerTitle: () => ( <Text style={{ fontFamily: 'Nunito-Regular', }}> {route.params?.pageTitle ?? strings('id_4_15')} </Text> ), })} />
Can we re-open this issue, I'm getting it on ios too
"@react-navigation/material-top-tabs": "^6.6.2", "@react-navigation/native": "6.1.6", "@react-navigation/stack": "6.2.0",
are you using reanimated 3?
I can answer yes. I used reanimated 3 to custom tabbar. When I changed to default tabbar, the issue was disappear
Can we re-open this issue, I'm getting it on ios too
"@react-navigation/material-top-tabs": "^6.6.2", "@react-navigation/native": "6.1.6", "@react-navigation/stack": "6.2.0",
are you using reanimated 3?
I can answer yes. I used reanimated 3 to custom tabbar. When I changed to default tabbar, the issue was disappear
Can you open a new issue on Github with your findings? thanks (I'm not associated with Software Mansion, I simply reported this issue last year)
Same here
"dependencies": {
"@react-native-community/blur": "^4.3.0",
"@react-native-community/netinfo": "^9.3.7",
"@react-navigation/bottom-tabs": "^6.5.7",
"@react-navigation/native": "^6.1.6",
"@react-navigation/native-stack": "^6.9.12",
"@types/react-native-vector-icons": "^6.4.13",
"patch-package": "^6.5.1",
"postinstall-postinstall": "^2.1.0",
"react": "18.2.0",
"react-native": "0.71.4",
"react-native-gesture-handler": "^2.9.0",
"react-native-reanimated": "^3.0.2",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.20.0",
"react-native-ui-lib": "^7.2.1",
"react-native-vector-icons": "^9.2.0",
"react-native-video": "^5.2.1"
},
Me too
+1
I had the same problem and it worked for me to downgrade version of react-native-reanimated
to: ^2.9.1
in package.json.
After npm i
then npx react-native start --reset-cache
and then npx react-native run-android
+1
"@react-navigation/bottom-tabs": "^6.5.7",
"@react-navigation/drawer": "^6.6.2",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.16",
"react": "18.2.0",
"react-native": "0.71.4",
Reverting to the latest 2.x.x solved this issue for me.
Could it be an issue with reanimated? Looks like they fixed something in https://github.com/software-mansion/react-native-reanimated/pull/4252
After upgrading from
6.0.0-next.9
to6.0.0-next.10
, the application crashes with the following error: