Whenever I switch from the initial screen to the language selection screen, I encounter this error and have exhausted all possible solutions. I attempted to utilize "useNavigation" but still encountered errors, so I resorted to using this method instead. The app should ideally navigate from the initial screen to the language selection screen via the app navigator:
ERROR TypeError: Cannot read property 'navigate' of undefined, js engine: hermes
Here is the code snippet for the initial screen
:
The following code snippet is meant to be placed here...
Code segment for LanguageSelection screen
:
Add your specific code for the Language Selection Screen here...
AppNavigator.tsx :
Include relevant content for AppNavigator.tsx...