Reputation: 154
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
Upvotes: 3
Views: 2228
Reputation: 22209
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.
Upvotes: 1