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