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
Setup your project using the [Get API Key guide](/api-key).
16
18
17
-
Note:
18
-
- This SDK may not be compatible with React Native [Frameworks](https://reactnative.dev/architecture/glossary#react-native-framework) like Expo.
19
-
- 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).
20
19
21
-
## Example
20
+
# Using Expo
21
+
## Installation
22
+
23
+
```package-install
24
+
npx expo install @reclaimprotocol/inapp-rn-sdk
25
+
```
26
+
27
+
## Setup
28
+
29
+
Expo users can skip the native configuration changes by adding the Reclaim InApp Config Plugin. To do so merge the following code to the plugins section of your `app.json`, `app.config.js`, or `app.config.ts` file:
30
+
31
+
```diff
32
+
{
33
+
// .. other plugin options (removed for brevity)
34
+
"plugins": [
35
+
"expo-router",
36
+
// Add the following in the plugins section:
37
+
+ "@reclaimprotocol/inapp-rn-sdk",
38
+
[
39
+
"expo-splash-screen",
40
+
{
41
+
"image": "./assets/images/splash-icon.png",
42
+
"imageWidth": 200,
43
+
"resizeMode": "contain",
44
+
"backgroundColor": "#ffffff"
45
+
}
46
+
]
47
+
// ... other plugins (removed for brevity)
48
+
],
49
+
// .. other options (removed for brevity)
50
+
}
51
+
```
52
+
53
+
Note: This module contains custom native code which is NOT supported by Expo Go
54
+
55
+
If you're using Expo without EAS, run the following commands:
56
+
57
+
```
58
+
# For iOS
59
+
npx expo prebuild
60
+
npx expo run:ios
61
+
62
+
# For Android
63
+
npx expo prebuild
64
+
npx expo run:android
65
+
```
66
+
67
+
If you're using Expo with EAS, create a new build:
68
+
69
+
```
70
+
# For online builds
71
+
npx eas-cli build --profile development
72
+
73
+
# For local builds
74
+
npx eas-cli build --profile development --local
75
+
```
22
76
23
-
- See the [Reclaim Example - React Native](https://github.com/reclaimprotocol/reclaim-inapp-reactnative-sdk/tree/main/samples/example_new_arch) for a complete example of how to use the SDK in a React Native application.
24
77
25
-
## Get an API Key
26
-
Setup your project using the [Get API Key guide](/api-key).
0 commit comments