IOS兼容

This commit is contained in:
Jerry Yan 2020-03-14 12:49:53 +08:00
parent d5ec06c7ab
commit 8ca5565fc8

View File

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