zhike-mobile-itunes-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
import { NativeModules } from 'react-native'; | ||
import { NativeModules, Platform } from 'react-native'; | ||
const ZKItunesApi = NativeModules.ZKItunesApi; | ||
@@ -6,2 +6,7 @@ | ||
return new Promise((resolve, reject) => { | ||
if (Platform.OS !== 'ios') { | ||
resolve(null); | ||
return; | ||
} | ||
ZKItunesApi.getAppMeta(appId, (error, meta) => { | ||
@@ -8,0 +13,0 @@ if (error) { |
{ | ||
"name": "zhike-mobile-itunes-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
30548
17