Using Parse on Different Platforms
SERVER_RENDERING variable to prevent warnings at runtime.
To use the npm modules for a browser based application, include it as you normally would:
var Parse = require('@datonis/parse');
For server-side applications or Node.js command line tools, include
// In a node.js environment var Parse = require('@datonis/parse/node');
For React Native applications, include
// In a React Native application var Parse = require('parse/react-native'); // On React Native >= 0.50 and Parse >= 1.11.0, set the Async var AsyncStorage = require('react-native').AsyncStorage; Parse.setAsyncStorage(AsyncStorage);
Copyright (c) 2015-present, Parse, LLC. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.
As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.