-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type mismatch: inferred type is StateWrapper #7916
Comments
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. #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.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
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:
The text was updated successfully, but these errors were encountered: