Nativebase: react-native run-androidfail after upgrading to react-native 0.46.0

Created on 6 Jul 2017  路  13Comments  路  Source: GeekyAnts/NativeBase

After I upgrade to react-native 0.46.0, I can't run react-native run-android. Digging a bit, Looks like the react-native start is failing because it cannot create the index.android.bundle. So I try to create the bundle manually but it got fail saying error below:

react-native bundle --platform android --dev false --entry-file i
ndex.android.js --bundle-output android/app/src/main/assets/index.android.bundle
 --assets-dest android/app/src/main/res
Scanning 575 folders for symlinks in C:\Git\cancure\node_modules (16ms)
Scanning 575 folders for symlinks in C:\Git\cancure\node_modules (16ms)
Loading dependency graph, done.

Unable to resolve module `react-native/Libraries/Renderer/src/renderers/native/R
eactNativePropRegistry` from `C:\Git\cancure\node_modules\native-base\dist\src\U
tils\computeProps.js`: Module does not exist in the module map

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cac
he`.

Downgrading back to react-native 0.45.1, my project run smoothly again

Most helpful comment

@madbean [email protected] is NOT a work around.
This commit is part of 0.1.13 which came BEFORE 0.1.11 (0.1.14 is most recent and it fixes this mixup).
This commit fixes the build errors as noted in this issue.

Current fix: use [email protected] (most recent)


Verified using the following:
[email protected]
[email protected]
[email protected]

@ibrahimker can you confirm and close this issue.

All 13 comments

I am also experiencing this problem.

I added Native Base to a new app, and ran react-native run-ios

@ibrahimker Thank you for your downgrade solution as that resolved the issue :)

Same issue with react-native 0.46

"react": "16.0.0-alpha.12", 

The fix for the issue is here : https://github.com/GeekyAnts/react-native-easy-grid/pull/39

Thanks

Acked. I got bitten by it too. This is directly related to react@^15.5 retiring PropTypes export in favor of the prop-types module. See also PR14641 for related RN@46 changes.

~Current fix:
use react-native-easy-grid v0.1.11 (why this is the latest even though there is 0.1.13 i have no idea)
https://github.com/GeekyAnts/react-native-easy-grid/issues/41~

See my other comment below

Hi Guys,

I upgrage my RN and since then I got the same error

    "native-base": "^2.2.1",
    "react": "16.0.0-alpha.12",
    "react-native": "0.46.2",

I check the other post with the same issue, but the solution is not working on me, do I need to downgrade to 0.46.1 ?

thanks,

@eggybot better downgrade your react-native until native-base team release the patch for it. It seems react-native keep changing some directory for it's file for each release

This might be breaking due to react-native-easy-grid
Upgrade react-native-easy-grid to latest to fix it.

It actually breaks due to a few dependencies @sankhadeeproy007 , react-native-easy-grid being one of them.
I'm making the changes to support this.

@madbean [email protected] is NOT a work around.
This commit is part of 0.1.13 which came BEFORE 0.1.11 (0.1.14 is most recent and it fixes this mixup).
This commit fixes the build errors as noted in this issue.

Current fix: use [email protected] (most recent)


Verified using the following:
[email protected]
[email protected]
[email protected]

@ibrahimker can you confirm and close this issue.

Closing this as the issue has been resolved in the last release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

georgemickael-b picture georgemickael-b  路  3Comments

sihemhssine picture sihemhssine  路  3Comments

aloifolia picture aloifolia  路  3Comments

maphongba008 picture maphongba008  路  3Comments

agersoncgps picture agersoncgps  路  3Comments