diff --git a/RNICloudKeyValueStore.podspec b/RNICloudKeyValueStore.podspec index f877805..261efbc 100644 --- a/RNICloudKeyValueStore.podspec +++ b/RNICloudKeyValueStore.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.authors = { "Adrian" => "adrian@nona.digital" } s.platform = :ios, "7.0" - s.source = { :git => "httsp://github.com/Nona-Creative/react-native-icloudstore.git" } + s.source = { :git => "https://github.com/Nona-Creative/react-native-icloudstore.git" } s.source_files = "*.{h,m}" diff --git a/index.js b/index.js index 8a071d0..b96c769 100644 --- a/index.js +++ b/index.js @@ -2,9 +2,10 @@ * @providesModule react-native-icloud-key-value-store */ -import { AsyncStorage, NativeModules, Platform } from 'react-native'; +import { NativeModules, Platform } from 'react-native'; +import { AsyncStorage } from '@react-native-community/async-storage'; -const iCloudStorage = Platform.OS === 'ios' ? NativeModules.RNICloudKeyValueStore : AsyncStorage; +const iCloudStorage = Platform.OS === 'ios' ? NativeModules.RNICloudStorage : AsyncStorage; export default iCloudStorage;