Open HuZinnia opened 2 months ago
It seems that the library used is not React-Native-Navigation.
function HomeScreen() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Home Screen</Text>
</View>
);
}
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;
because your code sample also belongs to the React-Navigation library that you are using :)
If it's React-Native-Navigation, look here. https://github.com/wix/react-native-navigation/issues/7905
same question.how to resolve?
@Hao-yiwen did you find the solution? I have same problem :(
Same issue
Upgrade to the latest version of react native screens. This resolved my issue.
"react-native-screens": "^3.34.0"
What happened?
What was the expected behaviour?
No response
Was it tested on latest react-native-navigation?
Help us reproduce this issue!
I'm using the example code provided on the official website, as shown below:
In what environment did this happen?
React Native Navigation version: "^7.40.1" React Native version: "^0.75.3", Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: v22.8.0 Device model: Android version: