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"
},
Also happened in
"react": "15.3.2",
"react-native": "0.37.0"
same problem
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
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';
Fixed with latest release 0.5.18
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"
}
netiher with
"depenencies": {
"native-base": "^0.5.18",
"react": "15.3.1",
"react-native": "^0.34.1"
}
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"
}
@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
Most helpful comment
@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