From 8ca5565fc867d481cd0cca5cc283740cafd8d964 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 14 Mar 2020 12:49:53 +0800 Subject: [PATCH] =?UTF-8?q?IOS=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 74bd116..8e13eee 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,9 @@ -import { NativeModules } from "react-native"; +import { NativeModules, Platform } from "react-native"; -export default NativeModules.VersionUpgrade; +export default { + checkVersion(){ + if(Platform.os === 'android'){ + NativeModules.VersionUpgrade.checkVersion() + } + } +};