Skip to content

Commit aed55d6

Browse files
committed
docs(README): update instructions for expo usage
1 parent 32e2f9c commit aed55d6

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Install `@vapi-ai/react-native` along with its peer dependencies:
5353

5454
```bash
5555
# Install main dependencies
56-
npm install @vapi-ai/react-native @daily-co/react-native-daily-js @react-native-async-storage/async-storage react-native-background-timer
56+
npm install @vapi-ai/react-native @daily-co/react-native-daily-js @react-native-async-storage/async-storage react-native-background-timer react-native-get-random-values
5757

5858
# Install exact WebRTC version (important for compatibility)
5959
npm install --save-exact @daily-co/react-native-webrtc@118.0.3-daily.4
@@ -299,14 +299,40 @@ rm -rf node_modules && npm cache verify && npm install
299299

300300
1. **Install dependencies**:
301301
```bash
302-
npx expo install @vapi-ai/react-native @daily-co/react-native-daily-js @react-native-async-storage/async-storage react-native-background-timer
303-
npm install --save-exact @daily-co/react-native-webrtc@118.0.3-daily.3
302+
npx expo install @vapi-ai/react-native @daily-co/react-native-daily-js @react-native-async-storage/async-storage react-native-background-timer react-native-get-random-values
303+
npm install --save-exact @daily-co/react-native-webrtc@118.0.3-daily.4
304304
```
305305

306306
2. **Update app.json**:
307307
```json
308308
{
309309
"expo": {
310+
"ios": {
311+
"supportsTablet": true,
312+
"bundleIdentifier": "com.anonymous.ReactNativeWithExpo52",
313+
"infoPlist": {
314+
"NSCameraUsageDescription": "Vapi Playground needs camera access to work",
315+
"NSMicrophoneUsageDescription": "Vapi Playground needs microphone access to work",
316+
"UIBackgroundModes": ["voip"]
317+
}
318+
},
319+
"android": {
320+
"permissions": [
321+
"android.permission.RECORD_AUDIO",
322+
"android.permission.MODIFY_AUDIO_SETTINGS",
323+
"android.permission.INTERNET",
324+
"android.permission.ACCESS_NETWORK_STATE",
325+
"android.permission.CAMERA",
326+
"android.permission.SYSTEM_ALERT_WINDOW",
327+
"android.permission.WAKE_LOCK",
328+
"android.permission.BLUETOOTH",
329+
"android.permission.FOREGROUND_SERVICE",
330+
"android.permission.FOREGROUND_SERVICE_CAMERA",
331+
"android.permission.FOREGROUND_SERVICE_MICROPHONE",
332+
"android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION",
333+
"android.permission.POST_NOTIFICATIONS"
334+
],
335+
},
310336
"plugins": [
311337
"@config-plugins/react-native-webrtc",
312338
"@daily-co/config-plugin-rn-daily-js",
@@ -317,7 +343,7 @@ npm install --save-exact @daily-co/react-native-webrtc@118.0.3-daily.3
317343
"minSdkVersion": 24
318344
},
319345
"ios": {
320-
"deploymentTarget": "13.4"
346+
"deploymentTarget": "15.1"
321347
}
322348
}
323349
]

0 commit comments

Comments
 (0)