From 86faff1547c47f08fd5a1a73f36bddf4e8e304bf Mon Sep 17 00:00:00 2001 From: Colin Burn-Murdoch Date: Thu, 21 May 2020 16:43:51 +0100 Subject: [PATCH 1/3] Import AsyncStorage from dedicated module. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8a071d0..7da7f82 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,8 @@ * @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; From d305e68e6f54755f5909219f810ee4b02840c0ff Mon Sep 17 00:00:00 2001 From: Colin Burn-Murdoch Date: Thu, 21 May 2020 16:44:29 +0100 Subject: [PATCH 2/3] RNICloudKeyValueStore doesn't exist. Correct is RNICloudStorage --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7da7f82..b96c769 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ 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; From 57ca1088c993c610aab5a7d5a83d15d3510f0d32 Mon Sep 17 00:00:00 2001 From: Colin Burn-Murdoch Date: Thu, 21 May 2020 16:44:37 +0100 Subject: [PATCH 3/3] Typo. --- RNICloudKeyValueStore.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"