-
-
Notifications
You must be signed in to change notification settings - Fork 596
RN crash with latest 1.10.1 #496
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
Comments
@kelset do you have the path where AsyncStorage is exposed on |
I'm not sure I've understood your question... by looking at the docs it doesn't seem AsyncStorage is exposed in any particular/new way...? |
RN 0.49.3 |
Wonderful! |
TBH, it’s driving me crazy all those changes, would you guys be OK with providing the AsyncStorage class instead of the SDK fighting to figure out what to do? |
@arniu thoughts? |
RN 0.40.0 passed! |
Yeah hopefully, and 0.43+ should pass now as well but 0.49 is broken |
Same problem today when I upgraded Expo SDK to v22.0 (RN 0.49). Solved it by putting back : import { AsyncStorage } from 'react-native/Libraries/react-native/react-native-implementation'; instead of : let AsyncStorage; Any idea why it's working that way again ? |
man it drives me crazy, we'Ll let you guys provide the async storage library on your own no? That seems safer for the long run |
You mean like exposing an option to pass in to Parse the storage to use? (like |
Yep, that's the idea! |
Please make it simple for beginners like me ! ^^ |
@AlexisJamin it's not about making it simple but just making it work. |
I'm using react-native@^0.50.2 and I'm having the same issue. How can I fix this? |
Added other try-catch to require the correct library for React Native 0.50+, as posted on [parse-community#496](parse-community#496)
Thanks @jcguarinpenaranda for the PR, can't wait for it to be merged & released :) |
In the meantime, as a workaround you can add a #!/bin/bash
PARSE_FILENAME='./node_modules/parse/lib/react-native/StorageController.react-native.js'
sed -i '' -e '16,21d' $PARSE_FILENAME
sed -i '' -e 's|let AsyncStorage|let AsyncStorage = require("react-native/Libraries/Storage/AsyncStorage")|g' $PARSE_FILENAME (OS X, Parse 1.10.1, RN 0.50) |
I'm using version 0.48.2 and every time I yarn it give me same error and I have to hard code!
to :
So it starts working well! any idea ? |
Any update on when the fix for this (aside from the postinstall suggestion) will come out? Asking because @natanrolnik merged the PR and then reverted it :/ |
Breaks with these: Replacing the |
As things are turning I guess we’re gonna require the clients to set their async storage manually with something like |
Nice idea ! 😊 |
Alright, i’ll work on a PR for this |
* Adds interface to externally set RN Async Storage * mark method as static * possible speedbump for travis: http://facebook.github.io/jest/docs/en/troubleshooting.html\#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server * use mongodb-runner
Hello.
This morning I've tried to update the package to the new release
1.10.1
but the packager returns this error:I think it may be related to e0ac255
Edit: I'm using
react-native
: 0.49.The text was updated successfully, but these errors were encountered: