We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the react-native-version-check.needUpdate function in react-native-version-check

To help you get started, we’ve selected a few react-native-version-check 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 redbadger / pride-london-app / src / components / StoreVersionDialog.js View on Github external
async componentDidMount() {
    const versionInfo: VersionInfo = await VersionCheck.needUpdate();
    const askLaterTime = await getAppUpdateAskLaterTime();
    const updateMessageSuppressed =
      !!askLaterTime && isBefore(now(), askLaterTime);

    const showAppStoreAlert = versionInfo.isNeeded && !updateMessageSuppressed;
    if (showAppStoreAlert) {
      this.handleAppStoreAlert();
    }
  }
github kimxogus / react-native-version-check / examples / reactnative / App.js View on Github external
componentDidMount() {
    VersionCheck.needUpdate({
      latestVersion: '1.0.0',
    }).then(res => this.setState(res));

    VersionCheck.getStoreUrl({ appID: '364709193' }).then(res => {
      //App Store ID for iBooks.
      this.setState({ storeUrl: res });
    });
  }
  render() {