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
})
})