From 2196577b66df14fdca05a7b5deaaf84a638a940e Mon Sep 17 00:00:00 2001 From: Chris Dell Date: Tue, 3 May 2016 20:43:17 +0100 Subject: [PATCH] CocoaPods usage --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index b9429ee..6df133d 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,21 @@ First you need to install react-native-fs: npm install react-native-fs --save ``` +### Adding with CocoaPods + +Add the RNFS pod to your list of application pods in your Podfile, using the path from the Podfile to the installed module: + +``` +pod 'RNFS', :path => './node_modules/react-native-fs' +``` + +Install pods as usual: +``` +pod install +``` + +### Adding Manually in XCode + In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] Go to node_modules ➜ react-native-fs and add the .xcodeproj file In XCode, in the project navigator, select your project. Add the lib*.a from the RNFS project to your project's Build Phases ➜ Link Binary With Libraries Click .xcodeproj file you added before in the project navigator and go the Build Settings tab. Make sure 'All' is toggled on (instead of 'Basic'). Look for Header Search Paths and make sure it contains both $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React - mark both as recursive.