How to use the react-native-code-push.getCurrentPackage function in react-native-code-push

To help you get started, we’ve selected a few react-native-code-push examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NSWSESMembers / availability-poc / client / src / screens / burger / Params.js View on Github external
componentDidMount() {
    DeviceInfo.gatherDeviceInfo().then((result) => {
      const deviceInfo = stringify(result);
      this.setState({ deviceInfo });
    });
    codePush.getCurrentPackage().then((result) => {
      const packageInfo = result ? stringify(result) : 'no package';
      this.setState({ packageInfo });
    });
  }
github NSWSESMembers / availability-poc / client / src / utils.js View on Github external
export const getCodePushHash = () => codePush.getCurrentPackage().then(result => (
  result ? result.packageHash.slice(0, 7) : '00000000'
));