IOS兼容

This commit is contained in:
Jerry Yan 2020-03-14 13:00:08 +08:00
parent d5da38b8e2
commit 0d92a58bf6

View File

@ -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()
}
};
}