Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

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

Open
SupriyaKalghatgi opened this issue Mar 12, 2019 · 4 comments
Open

Comments

@SupriyaKalghatgi
Copy link

"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
Copy link

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

@SupriyaKalghatgi
Copy link
Author

No

@proof666
Copy link

@diogomgbrito, @SupriyaKalghatgi

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

@fortezhuo
Copy link

fortezhuo commented Nov 20, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants