IOS兼容
This commit is contained in:
parent
d5da38b8e2
commit
0d92a58bf6
12
index.js
12
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()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user