React native – Error: Couldn't find a navigation object. Is your component inside NavigationContainer? (how to use useNavigation inside Navigation container)
I am writing a react-native MERN chat app and I am adding a profile page so the user can edit or add his data.the I want to access this page by a button and using useNavigation but I got the…