I have an observe function in a react native app that is needed by the Parse react mixin:
var Parse = require('parse').Parse;
var ParseReact = require('parse-react');
var React = require('react-native');
var PollingPage = React.createClass({
mixins: [ParseReact.Mixin],
observe: function (props, state) {
var inOutQuery = (new Parse.Query('IsOut'));
return state.isLoading ? {inOuts: inOutQuery} : null;
},
//etc
package.json:
"dependencies": {
"react-native": "^0.12.0"
},
"devDependencies": {
"parse": "^1.6.7",
"parse-react": "^0.5.0"
}
however when this is run it goes off to look in local storage:
getItem: function getItem(path) {
return localStorage.getItem(path);
},
Not to sure what is going on here.
I'm following this tutorial:
http://www.raywenderlich.com/106369/integrating-parse-react-native-ios#comments