You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-19Lines changed: 21 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -24,36 +24,38 @@ To use Firestack, we'll need to have a development environment that includes the
24
24
25
25
We need to link the package with our development packaging. We have two options to handle linking:
26
26
27
-
#### Through CocoaPods (iOS only)
27
+
#### Automatically with [rnpm](https://github.com/rnpm/rnpm)
28
28
29
-
Unfortunately, until we can link cocoapods in a library dynamically, we must use CocoaPods to use Firestack. Although it's not terribly difficult to do, we're stuck with this requirement for the time being.
29
+
[rnpm](https://github.com/rnpm/rnpm) is a React Native package manager which can help to automate the process of linking package environments.
30
30
31
-
In order to use cocoapods, we'll first need to install it. The [getting started](https://guides.cocoapods.org/using/getting-started.html) guide through CocoaPods offers a nice introduction on installing and using [Cocoapods](https://cocoapods.org/).
31
+
```bash
32
+
rnpm link
33
+
```
32
34
33
-
Cocoapods is delivered as a ruby gem, so we'll need to make sure we have ruby installed. (We recommend using [rvm](https://rvm.io/)) to manage environments.
35
+
Firestack will automatically pull in all of the Firebase requirements and link Firebase to our own project.
34
36
35
-
```shell
36
-
gem install cocoapods
37
-
```
37
+
#### Manually
38
38
39
-
> If you run into issues installing cocoapods, please see their [getting started guide](https://guides.cocoapods.org/using/getting-started.html) for help.
39
+
If you prefer not to use `rnpm`, we can manually link the package together with the following steps, after `npm install`:
40
40
41
+
1. In XCode, right click on `Libraries` and find the `Add Files to [project name]`.
41
42
42
-
With cocoapods installed, we'll need to create a `Podfile` to manage our dependencies and list our new `Firestack` library as a dependency of our project.
43
+

43
44
44
-
```shell
45
-
(cd ios && pod init)
46
-
```
45
+
2. Add the `node_modules/react-native-firestack/ios/Firestack.xcodeproj`
47
46
48
-
This command will create a `Podfile`in the `ios/` directory of our project. In this file, we'll need to list our dependencies. For now, we'll list one. The `Podfile` itself can be incredibly simple
47
+

49
48
49
+
3. In the project's "Build Settings" tab in your app's target, add `libFirestack.a` to the list of `Link Binary with Libraries`
50
50
51
-
```ruby
52
-
platform :ios, '8.0'
53
-
target 'RoundHere'do
54
-
pod 'Firestack', :path => '../node_modules/react-native-firestack'
55
-
end
56
-
```
51
+

52
+
53
+
4. Ensure that the `Build Settings` of the `Firestack.xcodeproj` project is ticked to _All_ and it's `Header Search Paths` include both of the following paths _and_ are set to _recursive_:
0 commit comments