diff --git a/index.js b/index.js index 55ddff50..11da50e0 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const { RNIosSettingsBundle } = NativeModules; export default { get: (key,callback) => { - if(Platform == 'android') + if(Platform.OS == 'android') return callback([1,'it works only on ios!']); RNIosSettingsBundle.getValByKey(key,callback);