From b7b2a42ff0f587c3674d71b10435d0971f8d42c9 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Sat, 13 Apr 2019 09:02:31 +0200 Subject: [PATCH 1/2] fix: Fixed failing to find headers when linked with Pods. If you've linked using react-native link, you will have to rerun the command. If you've linked manually, find your Podfile, and make the following changes: ```diff - pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage' + pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage' ``` --- react-native-async-storage.podspec => RNCAsyncStorage.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename react-native-async-storage.podspec => RNCAsyncStorage.podspec (91%) diff --git a/react-native-async-storage.podspec b/RNCAsyncStorage.podspec similarity index 91% rename from react-native-async-storage.podspec rename to RNCAsyncStorage.podspec index 9107be4e..395d04ca 100644 --- a/react-native-async-storage.podspec +++ b/RNCAsyncStorage.podspec @@ -3,7 +3,7 @@ require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| - s.name = "react-native-async-storage" + s.name = "RNCAsyncStorage" s.version = package['version'] s.summary = package['description'] s.license = package['license'] From 554965227dda7c57d026ea4c1f99fa3195bb510e Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Sat, 13 Apr 2019 19:29:46 +0200 Subject: [PATCH 2/2] Update Linking.md --- docs/Linking.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Linking.md b/docs/Linking.md index 0dd9326d..9f3dcff1 100644 --- a/docs/Linking.md +++ b/docs/Linking.md @@ -14,10 +14,10 @@ #### Using 'Pods' 1. Enter into iOS Folder `cd ios/` (on your project's root folder). -2. Add this line to your `Podfile` just below the last pod: (if you don't one just create a new runnning: `pod init`). +2. Add this line to your `Podfile` just below the last pod (if you don't have one, you can create it by running `pod init`): ```diff -+ pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage' ++ pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage' ``` 3. Run `pod install`