0

When I install parse library in my existing project in react-native then it shows can't find variable: localStorage Error and break my app.

When I used install.save method then it shows the error.

let install = new Parse.Installation();
        install.set("deviceType", navigator.userAgent);
        install.save().then((resp) => {
        console.log('Created install object', resp); })
         this.setState({
          result: 'New object created with objectId: ' + resp.id
         })
        },err => {
        console.log('Error creating install object', err);
        this.setState({
          result: 'Failed to create new object, with error code: ' + err.message
        })
      })
Tom Fox
  • 897
  • 3
  • 14
  • 34

1 Answers1

1

I got the solution for this it's Parse library issue and I upgrade the library and issue solved.