Parse-sdk-js: react-native 0.43.3 compatibility

Created on 12 Apr 2017  路  10Comments  路  Source: parse-community/Parse-SDK-JS

in version 0.43.3, they renamed the react-native.js toreact-native-implementation.js in react-native/Libraries/react-native/

i do not know how to fix this dynamically, without breaking to support < RN 0.43.3

Most helpful comment

@jjdp
I with my team did support Parse-SDK-JS for RN v0.43:
https://github.com/allmaxgit/Parse-SDK-JS

You can try this:

"dependencies": {
  ...
  "react": "16.0.0-alpha.6",
  "react-native": "^0.43.2",
  "parse": "git+https://github.com/allmaxgit/Parse-SDK-JS.git",
  ...
}

watchman watch-del-all
rm -rf node_modules/ && npm i
npm start --reset-cache

All 10 comments

I join, I encountered an error while updating:

error: bundling: UnableToResolveError: Unable to resolve modulereact-native/Libraries/react-native/react-native.jsfromreact-native-project/node_modules/parse/lib/react-native/StorageController.react-native.js: Module does not exist in the module map or in these directories: react-native-project/node_modules/react-native/Libraries/react-native

Could you tell us, do will support for this version? :(

change the import in the meantime. package needs a version bump say to determine what RN to support

@jjdp
I with my team did support Parse-SDK-JS for RN v0.43:
https://github.com/allmaxgit/Parse-SDK-JS

You can try this:

"dependencies": {
  ...
  "react": "16.0.0-alpha.6",
  "react-native": "^0.43.2",
  "parse": "git+https://github.com/allmaxgit/Parse-SDK-JS.git",
  ...
}

watchman watch-del-all
rm -rf node_modules/ && npm i
npm start --reset-cache

@mxklsn please create a PR with that change. I would love to see it in the next parse release.

@mxklsn thank you

@thiagoghisi yep, would be nice... I guess it would break the compatibility with the previous versions of React-Native though.

@mxklsn Thanks for your contribution. Could you also check #435 which Throws error just for Android ?

:wave: anyway I can help push this along?

This seems to be fixed in 1.10.0.

Yes. Fixed with 1.10.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Simone-cogno picture Simone-cogno  路  7Comments

simpleshadow picture simpleshadow  路  6Comments

futureinapps picture futureinapps  路  3Comments

jlnquere picture jlnquere  路  4Comments

fdidron picture fdidron  路  4Comments