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 sample app with use cases for the DevRev Cordova plugin is provided as part of our [public repository](https://github.com/devrev/devrev-sdk-cordova). To set up and run the sample app:
36
+
37
+
```sh
38
+
cd sample
39
+
npm install
40
+
cordova platform add android
41
+
cordova platform add ios
42
+
```
43
+
44
+
<Tabs>
45
+
<Tabtitle="Android">
46
+
```sh
47
+
cordova run android
48
+
```
49
+
OR open `platforms/android` in Android Studio and run the app.
50
+
</Tab>
51
+
<Tabtitle="iOS">
52
+
1. Open `platforms/ios/Podfile` and ensure it contains:
53
+
```ruby
54
+
platform :ios, '15.0'
55
+
```
56
+
2. Install dependencies:
57
+
```sh
58
+
cd platforms/ios
59
+
pod install
60
+
```
61
+
3. Run the app:
62
+
```sh
63
+
cordova run ios
64
+
```
65
+
OR open `DevRevSDKSample.xcworkspace` in Xcode and run the app.
Copy file name to clipboardExpand all lines: fern/docs/pages/sdks/mobile/react-native/quickstart-expo.mdx
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,33 @@ The SDK will be ready for use once you execute the following configuration metho
41
41
```typescript
42
42
DevRev.configure(appID: string)
43
43
```
44
+
45
+
## Sample app
46
+
A sample app with use cases for the DevRev Expo plugin has been provided as a part of our [public repository](https://github.com/devrev/devrev-sdk-expo). To set up and run the sample app:
47
+
48
+
1. Go to sample directory:
49
+
```sh
50
+
cd sample
51
+
```
52
+
53
+
2. Install dependencies:
54
+
```sh
55
+
yarn install
56
+
```
57
+
58
+
3. Run clean and prebuild:
59
+
```sh
60
+
npx expo prebuild --clean
61
+
```
62
+
63
+
4. Run the app On Android:
64
+
```sh
65
+
npx expo run:android
66
+
```
67
+
OR open `android` in Android Studio and run the app.
68
+
69
+
5. Run the app On iOS:
70
+
```sh
71
+
npx expo run:ios
72
+
```
73
+
OR open `ios/DevRevSDKSample.xcworkspace` in Xcode and run the app.
Copy file name to clipboardExpand all lines: fern/docs/pages/sdks/mobile/react-native/quickstart.mdx
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,3 +21,28 @@ The SDK will be ready for use once you execute the following configuration metho
21
21
```typescript
22
22
DevRev.configure(appID: string)
23
23
```
24
+
25
+
## Sample app
26
+
A sample app with use cases for the DevRev React Native plugin has been provided as a part of our [public repository](https://github.com/devrev/devrev-sdk-react-native). To set up and run the sample app:
27
+
28
+
1. Go to the sample directory:
29
+
```sh
30
+
cd sample
31
+
```
32
+
33
+
2. Install dependencies:
34
+
```sh
35
+
yarn install
36
+
```
37
+
38
+
3. For iOS, run:
39
+
```sh
40
+
cd ios
41
+
pod install
42
+
```
43
+
44
+
4. Run the app on Android or iOS using:
45
+
```sh
46
+
npx react-native start
47
+
```
48
+
Or open `android` directory in Android Studio or `ios/DevRevSDKSample.xcworkspace` in Xcode and run the app from there.
0 commit comments