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
- A [Reclaim account](https://dev.reclaimprotocol.org/explore) where you've created an app and have the app id, app secret.
9
11
- A provider id that you've added to your app in [Reclaim Devtools](https://dev.reclaimprotocol.org/explore).
10
12
13
+
Note:
14
+
- This SDK may not be compatible with React Native [Frameworks](https://reactnative.dev/architecture/glossary#react-native-framework) like Expo.
15
+
- To learn more about React Native apps without a framework, refer to the [React Native documentation](https://reactnative.dev/docs/getting-started-without-a-framework).
16
+
11
17
## Example
12
18
13
-
- See the [Reclaim Example - React Native](example/README.md) for a complete example of how to use the SDK in a React Native application.
19
+
- See the [Reclaim Example - React Native](https://github.com/reclaimprotocol/reclaim-inapp-reactnative-sdk/tree/main/example) for a complete example of how to use the SDK in a React Native application.
14
20
15
21
## Installation
16
22
17
-
```sh
23
+
```package-install
18
24
npm install @reclaimprotocol/inapp-rn-sdk
19
25
```
20
26
21
-
Note: This package is not published to npm registry. Will be published soon. For now, you can install it from git source.
# Cocoapods is the recommended way to install the SDK.
129
+
pod 'ReclaimInAppSdk', '~> 0.1.4'
108
130
```
109
131
110
-
- or from a specific commit (Alternative):
132
+
```ruby tabs="Git Tag"
133
+
pod 'ReclaimInAppSdk', :git => 'https://github.com/reclaimprotocol/reclaim-inapp-ios-sdk.git', :tag => '0.1.4'
134
+
```
111
135
112
-
```ruby
113
-
pod 'ReclaimInAppSdk', :git => 'https://github.com/reclaimprotocol/reclaim-inapp-ios-sdk.git', :commit => '184d41628026768feb703dc7bb9a3d913c6b271e'
136
+
```ruby tabs="Git Head"
137
+
pod 'ReclaimInAppSdk', :git => 'https://github.com/reclaimprotocol/reclaim-inapp-ios-sdk.git'
114
138
```
115
139
116
-
- or from a specific branch (Alternative):
140
+
```ruby tabs="Git Commit"
141
+
pod 'ReclaimInAppSdk', :git => 'https://github.com/reclaimprotocol/reclaim-inapp-ios-sdk.git', :commit => 'a488eaa2279318f4836ead105e5ecce6fb6a0481'
142
+
```
117
143
118
-
```ruby
144
+
```ruby tabs="Git Branch"
119
145
pod 'ReclaimInAppSdk', :git => 'https://github.com/reclaimprotocol/reclaim-inapp-ios-sdk.git', :branch => 'main'
120
146
```
147
+
</Tabs>
121
148
122
-
2. After adding the dependency, your podfile may look like this:
149
+
- After adding the dependency, your podfile may look like this:
123
150
124
151
```ruby
125
152
platform :ios, '13.0'
@@ -135,7 +162,7 @@ target 'InappRnSdkExample' do
135
162
)
136
163
137
164
# This is the line you need to add to your podfile.
138
-
pod 'ReclaimInAppSdk', :git => 'https://github.com/reclaimprotocol/reclaim-inapp-ios-sdk.git', :tag => '0.1.2'
165
+
pod 'ReclaimInAppSdk', '~> 0.1.4'
139
166
140
167
pre_install do |installer|
141
168
system("cd ../../ && npx bob build --target codegen")
@@ -144,11 +171,18 @@ target 'InappRnSdkExample' do
144
171
# ... rest of the podfile. (removed for brevity)
145
172
```
146
173
174
+
3. Run `pod install` inside the ios/ directory of your project.
175
+
176
+
```bash
177
+
cd ios/
178
+
pod install
179
+
```
180
+
147
181
#### Fixing performance issues on IOS physical devices
148
182
149
183
Your app performance will be severely impacted when you run debug executable on a physical device. Fixing this requires a simple change in your Xcode project xcscheme.
150
184
151
-
#### Method 1: Update Environment Variables for XCScheme (Recommended)
185
+
#####Method 1: Update Environment Variables for XCScheme (Recommended)
152
186
1. Open your iOS project (*.xcworkspace) in Xcode.
153
187
2. Click on the project target.
154
188
3. Click on the **Scheme** dropdown.
@@ -167,7 +201,7 @@ Your app performance will be severely impacted when you run debug executable on
167
201
8. Click on the **Close** button in the dialog and build the project.
168
202
9. Run the app on a physical device.
169
203
170
-
#### Method 2: Disable "Debug executable"
204
+
#####Method 2: Disable "Debug executable"
171
205
172
206
This method is **not recommended** but could be useful if you don't want to add environment variables to the xcscheme.
0 commit comments