3

I'm trying to integrate Parse server with React native, so I followed the documentation and I added parse/react-native package but it keeps throwing this error "TypeError: _reactNative3.default.setAsyncStorage is not a function

Here is my snack for more details https://snack.expo.io/BkWo7v7sG

1 Answer 1

1

This error means that your Parse SDK is not installed / imported correctly.

This is true because in your package.json you are using

 "parse/react-native": "1.11.1"

which is not a package.

You need to install Parse via npm / yarn as yarn add parse or modify your package.json as

"parse": "1.11.1"

, and follow the steps, then it would work.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for your response, so I can import Parse from 'parse' instead of 'parse/react-native" ??
No, you need to install parse and not parse/react-native in your package.json, parse/react-native is not a package

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.