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
The `--save` option is [important for autolinking](https://reactnative.dev/docs/linking-libraries-ios#automatic-linking).
25
29
26
30
3. Run:
31
+
27
32
```sh
28
33
npx expo run:android --no-build-cache
29
34
```
35
+
30
36
to ensure native dependencies are linked.
31
37
32
38
4. Run the app using:
39
+
33
40
```sh
34
41
npx expo start
35
42
```
@@ -41,24 +48,43 @@ Note, despite the steps mention Expo, the expo is not necessary, vanilla react-n
41
48
#### RNCWebView module could not be found
42
49
43
50
Use developers build. First, run:
51
+
44
52
```sh
45
53
npx expo run:android --no-build-cache
46
54
```
47
55
48
56
After the error message disappears, you can start emulator with:
57
+
49
58
```sh
50
59
npx expo run:android
51
60
```
61
+
52
62
and switch between the build types from Expo CLI menu.
53
63
54
64
## Usage
55
65
56
66
There are 2 ways how to integrate Provenance components:
57
67
58
-
* The easiest one: by using our built in modal
59
-
* Allows more customizations: by using Trust Badge and Bundle separately
68
+
- The easiest one: by using our built in modal
69
+
- Allows more customizations: by using Trust Badge and Bundle separately
70
+
71
+
In both cases you will need `apiKey`, `bundleId` and `productSku`.
72
+
For `apiKey` and `bundleId` use the same values you may already received from our support team or request those.
60
73
61
-
In both cases you will need `bundleId` and `productSku` - use the same values you may already received from our support team or from your retail website.
74
+
You must call `configure` before rendering the components.
75
+
76
+
```
77
+
import { configure } from "@provenance/react-native-provenance";
78
+
79
+
configure({
80
+
apiKey: process.env.EXPO_PUBLIC_API_KEY,
81
+
bundleId: process.env.EXPO_PUBLIC_BUNDLE_ID,
82
+
});
83
+
```
84
+
85
+
We recommend reading API_KEY value from the environment variable, like in example above if you use Expo.
86
+
87
+
`productSku` is a unique identifier of a product, it is the same as on your retail website.
62
88
63
89
### Using our built in modal
64
90
@@ -78,7 +104,7 @@ export function ProductPage () {
0 commit comments