web icon indicating copy to clipboard operation
web copied to clipboard

React Navigation web not compatible with react-app-rewired

Open SupriyaKalghatgi opened this issue 5 years ago • 4 comments

"dependencies": {
    "@react-navigation/core": "3.0.0-alpha.19",
    "@react-navigation/web": "^1.0.0-alpha",
    "react": "^16.8.4",
    "react-art": "^16.8.4",
    "react-dom": "^16.8.4",
    "react-native-web": "0.10.0",
    "react-scripts": "2.1.8"
  },
  "devDependencies": {
    "@babel/plugin-proposal-class-properties": "7.3.4",
    "@babel/plugin-proposal-export-default-from": "7.2.0",
    "customize-cra": "0.2.12",
    "react-app-rewired": "2.1.0"
  },

React Navigation works when run with react-scripts start but fails when scripts is replaced with react-app-rewired start.

This is config-overrides.js image

Output image

SupriyaKalghatgi avatar Mar 12 '19 06:03 SupriyaKalghatgi

I have the same issue, did you find a solution for this @SupriyaKalghatgi ?

diogomgbrito avatar Mar 26 '19 15:03 diogomgbrito

No

SupriyaKalghatgi avatar Mar 27 '19 03:03 SupriyaKalghatgi

@diogomgbrito, @SupriyaKalghatgi

workaround i found is just import from src/ folder, like that: import { createBrowserApp } from "@react-navigation/web/src";

proof666 avatar Apr 21 '19 16:04 proof666

Please set sticky @proof666 's answer post.. Save my day!

fortezhuo avatar Nov 20 '19 06:11 fortezhuo