fails with react-native-windows, cannot read property Direction of undefined
See original GitHub issueHello, Excellent work by the team.
Please forgive me if my issue is not clear enough or does not follow the standard. I will provide further information if need be. Thanks in advance.
Here is my problem, I am running into this error message while trying out react-native-windows on a project.
I followed the instructions on the react navigation webiste to get this installed on a bare react native project. All works well for android, but whenever I run npx react-native run-windows
on windows, I get the following error message:
TypeError: Cannot read property 'Direction' of undefined
Project dependencies
"react": "16.11.0",
"react-native": "0.62.0-0",
"react-native-gesture-handler": "1.6.1",
"react-native-reanimated": "1.9.0",
"react-native-rss-parser": "1.4.0",
"react-native-safe-area-context": "3.0.2",
"react-native-screens": "2.8.0",
"react-native-sqlite-2": "3.0.1",
"react-native-webview": "10.2.3",
"react-native-windows": "0.62.0-0"
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:18
Top Results From Across the Web
Cannot read property 'Direction' of undefined, tests only
I just removed and re-added react-native-gesture-handler with yarn, and ran pod install . Again, the app is working, but the tests fail to...
Read more >Cannot read property "Direction" of undefined - Comma
Solution · Open Xcode and right click Libraries “Add Files to Project” · /node_modules/react-native-gesture-handlers/ios/RNGestureHandler.
Read more >fails with react-native-windows, cannot read property Direction of ...
Hello, Excellent work by the team. Please forgive me if my issue is not clear enough or does not follow the standard. I...
Read more >Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >typeerror: cannot read properties of undefined (reading 'route')
This type of error usually occurs when you are trying to access a property of an object or variable that is not defined....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Having the same isssue. Its problematic as this package is part of react-navigation. 😦
The above recommendation works… but still there are few more things to fix. Here is my setup all together.