Closed emclab closed 4 years ago
Encountered the same issue.
Please suggest the last working compatible version for native, stack and drawer, it seems downgrading is also not working for me, due to compatibility mismatch.
Follow this steps https://github.com/react-navigation/react-navigation/issues/7981#issuecomment-611377210
Check other issues before creating a new one. Please close the issue.
Duplicate of #7978
Current Behavior After upgrading to latest react-navigation 5.1.5 from 5.1.3, there is error when launching app with
npx react-native run-android
(same without npx):error: bundling failed: SyntaxError: C:\D\code\js\emps_fe615\node_modules\@react-navigation\bottom-tabs\src\index.tsx: Unexpected token (15:12)
13 | Types 14 | /
::ffff:127.0.0.1 - - [10/Apr/2020:04:35:24 +0000] "GET /index.bundle?platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1"
Here is the dependencies in package.json
"dependencies": { "@react-native-community/async-storage": "^1.8.0", "@react-native-community/cli-platform-android": "^4.1.1", "@react-native-community/datetimepicker": "^2.2.2", "@react-native-community/masked-view": "^0.1.7", "@react-navigation/native": "^5.1.5", "@react-navigation/stack": "^5.2.10", "@react-navigation/bottom-tabs": "^5.2.6", "moment": "^2.24.0", "react": "16.9.0", "react-native": "0.61.5", "react-native-audio": "^4.3.0", "react-native-confirmation-code-input": "^1.0.4", "react-native-device-info": "^5.5.3", "react-native-elements": "^1.2.7", "react-native-gesture-handler": "^1.6.1", "react-native-gifted-chat": "^0.13.0", "react-native-image-picker": "^2.3.0", "react-native-image-resizer": "^1.2.0", "react-native-keychain": "^4.0.5", "react-native-linear-gradient": "^2.5.6", "react-native-modal": "^11.5.4", "react-native-modal-datetime-picker": "^8.3.0", "react-native-navbar": "^2.1.0", "react-native-reanimated": "^1.7.0", "react-native-safe-area-context": "^0.7.3", "react-native-screens": "^2.4.0", "react-native-segmented-control-tab": "^3.4.1", "react-native-sound": "^0.11.0", "react-native-vector-icons": "^6.6.0", "socket.io-client": "2.1.1" },
Expected Behavior
How to reproduce
Your Environment