react-navigation / web

Tools for react-navigation on web browsers and servers
https://reactnavigation.org
MIT License
94 stars 28 forks source link

React Navigation web not compatible with react-app-rewired #18

Open SupriyaKalghatgi opened 5 years ago

SupriyaKalghatgi commented 5 years ago
"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

diogomgbrito commented 5 years ago

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

SupriyaKalghatgi commented 5 years ago

No

proof666 commented 5 years ago

@diogomgbrito, @SupriyaKalghatgi

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

fortezhuo commented 5 years ago

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