Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown named module: 'react/lib/ReactNativePropRegistry' #328

Closed
justfede opened this issue Nov 28, 2016 · 10 comments
Closed

Unknown named module: 'react/lib/ReactNativePropRegistry' #328

justfede opened this issue Nov 28, 2016 · 10 comments

Comments

@justfede
Copy link

justfede commented Nov 28, 2016

Hey guys!

Im getting this error with the following example: http://nativebase.io/docs/v0.5.13/components#anatomy

My package.json:

"dependencies": {
"native-base": "^0.5.16",
"react": "15.4.1",
"react-native": "0.38.0"
},

@uniquarkD
Copy link

#307

bdunn313 added a commit to bdunn313/NativeBase that referenced this issue Nov 28, 2016
Resolved this issue by bumping the version number of react-native-easy-grid, which has a fix in place as of 0.1.7, and by modifying the import statement to take advantage of the fact that it can be imported directly from react-native.
@rocwong-cn
Copy link

Also happened in
"react": "15.3.2",
"react-native": "0.37.0"

@cyuxlif
Copy link

cyuxlif commented Nov 29, 2016

same problem

@rocwong-cn
Copy link

fixed by change
import ReactNativePropRegistry from 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry';
to
import { ReactNativePropRegistry } from 'react-native';
in node_modules/react-native-easy-grid/Utils/computeProps.js

@smhatre59
Copy link

As @RocWangv pointed out correctly replacing the following code in react-native-easy-grid module fixed the issue for me:
// var ReactNativePropRegistry = require('react/lib/ReactNativePropRegistry');
import { ReactNativePropRegistry } from 'react-native';

@SupriyaKalghatgi
Copy link
Contributor

Fixed with latest release 0.5.18

@mauron85
Copy link

This fix seems not working with react-native 0.35

  "dependencies": {
    "native-base": "^0.5.18",
    "react": "^15.3.1",
    "react-native": "^0.35.0",
    "react-native-maps": "^0.11.0",
    "react-native-mauron85-background-geolocation": "^0.2.0-alpha.5"
  }

@20matan
Copy link

20matan commented Nov 30, 2016

netiher with

"depenencies": {
    "native-base": "^0.5.18",
    "react": "15.3.1",
    "react-native": "^0.34.1"
}

@mauron85
Copy link

But it really works with:

  "dependencies": {
    "native-base": "^0.5.18",
    "react": "^15.4.1",
    "react-native": "^0.38.0",
    "react-native-maps": "^0.11.0",
    "react-native-mauron85-background-geolocation": "^0.2.0-alpha.5"
  }

@SupriyaKalghatgi
Copy link
Contributor

@mauron85 @20matan If you want to work with RN < 0.38 then you should go for NB < 0.5.16
For RN >= 0.38, NB 0.5.18 is compatible

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

No branches or pull requests

8 participants