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

Use peerDependencies for react and react-native #1

Merged
merged 2 commits into from Nov 20, 2017
Merged

Use peerDependencies for react and react-native #1

merged 2 commits into from Nov 20, 2017

Conversation

messense
Copy link
Contributor

@messense messense commented Nov 7, 2017

Fix possible error on startup:

Failed to load bundle(http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false) with error:(Ambiguous resolution: module '/Users/messense/workspace/bosondata/brm-apps/index.ios.js' tries to require 'react-native', but there are several files providing this module. You can delete or fix them: 

/Users/messense/workspace/bosondata/brm-apps/node_modules/react-native-safe-area-view/node_modules/react-native/package.json

/Users/messense/workspace/bosondata/brm-apps/node_modules/react-native/package.json

@paulsoh
Copy link

paulsoh commented Nov 11, 2017

I need this! thx

@suark
Copy link

suark commented Nov 14, 2017

I also need this. Not sure how it works without this.

@deadcoder0904
Copy link

Any updates ❓

@lizhuoyuan
Copy link

Hey,I did this:
npm install react-native-safe-area-view
and
"dependencies": {

  • "hoist-non-react-statics": "^2.3.1",
  • "react": "16.0.0-alpha.12",
  • "react-native": "^0.48.4"
  • "hoist-non-react-statics": "^2.3.1"
  • },
  • "peerDependencies": {
  • "react": "16.0.0",
  • "react-native": "^0.50.1"
    }

it doesn't work
what should I do?

@davepack
Copy link
Member

Thank you for this! Sorry for the delay!

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

Successfully merging this pull request may close these issues.

None yet

6 participants