Skip to content

Commit 8ee187d

Browse files
authored
Correct CocoaPods set-up instructions
1 parent 336b3ed commit 8ee187d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,32 @@ v1.0 - Initial release for iOS with full support of all operations based on plan
9595

9696
##### With CocoaPods:
9797

98+
This command should be executed in the root directory of your RN project
9899
```shell
99100
npm install --save react-native-sqlite-storage
100101
```
101-
Then add this to your Podfile
102+
Then add this to your Podfile which should be located inside the ios project subdirectory
102103
```ruby
103-
pod 'react-native-sqlite-storage', :path => './node_modules/react-native-sqlite-storage'
104+
pod 'React', :path => '../node_modules/react-native'
105+
pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
104106
```
107+
Or use the sample Podfile included in the package by copying it over to ios subdirectory and replacing AwesomeProject inside of it with the name of your RN project.
108+
109+
Refresh the Pods installation
110+
```ruby
111+
pod install
112+
```
113+
OR
114+
```ruby
115+
pod update
116+
```
117+
105118

106119
Done, skip to Step 2.
107120

108121
##### Without CocoaPods:
109122

123+
This command should be executed in the root directory of your RN project
110124
```shell
111125
npm install --save react-native-sqlite-storage
112126
rnpm link

0 commit comments

Comments
 (0)