From 0d92a58bf6843a7dc308e207705ecb29432ecf99 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 14 Mar 2020 13:00:08 +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 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 8e13eee..530c071 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,7 @@ -import { NativeModules, Platform } from "react-native"; +import {NativeModules, Platform} from "react-native"; -export default { - checkVersion(){ - if(Platform.os === 'android'){ - NativeModules.VersionUpgrade.checkVersion() - } +export function checkVersion() { + if (Platform.os === 'android') { + NativeModules.VersionUpgrade.checkVersion() } -}; +}