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
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@ React Native allows developers to use a single code base to deploy features to m
22
22
$ npm install react-native-mparticle --save
23
23
```
24
24
25
-
2.**Install the native dependencies**. You can use `rnpm` (now part of `react-native` core via `link`) to add native dependencies automatically:
25
+
2.**Install the native dependencies**.
26
26
27
27
```bash
28
-
$ react-native link
28
+
$ npm link react-native-mparticle
29
29
```
30
30
31
31
## <aname="iOS"></a>iOS
@@ -37,8 +37,12 @@ $ react-native link
37
37
2.**Install the SDK** using CocoaPods:
38
38
39
39
```bash
40
-
$ # Update your Podfile to depend on 'mParticle-Apple-SDK' version 7.2.0 or later
41
-
$ pod install
40
+
$ # Update your Podfile to be ready to use dynamically linked frameworks by commenting out the following line
41
+
$ # :flipper_configuration => flipper_config,
42
+
```
43
+
Then run the following command
44
+
```
45
+
$ USE_FRAMEWORKS=dynamic bundle exec pod install
42
46
```
43
47
44
48
The mParticle SDK is initialized by calling the `startWithOptions` method within the `application:didFinishLaunchingWithOptions:` delegate call.
@@ -83,13 +87,16 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
83
87
84
88
#### Objective-C Example
85
89
86
-
With recent changes in Swift support for static libraries and React Native's preference for the traditional CocoaPods and static libraries delivery mechanism, we reccomend against setting `use_frameworks!` in your Podfile.
@@ -122,6 +129,12 @@ Next, you'll need to start the SDK:
122
129
123
130
See [Identity](http://docs.mparticle.com/developers/sdk/ios/identity/) for more information on supplying an `MPIdentityApiRequest` object during SDK initialization.
0 commit comments