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 {
|
export function checkVersion() {
|
||||||
checkVersion(){
|
if (Platform.os === 'android') {
|
||||||
if(Platform.os === 'android'){
|
NativeModules.VersionUpgrade.checkVersion()
|
||||||
NativeModules.VersionUpgrade.checkVersion()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user