react-native-webrtc / react-native-incall-manager

Handling media-routes/sensors/events during a audio/video chat on React Native
ISC License
556 stars 195 forks source link

How to use this with React Native Expo #248

Open victormongi opened 3 months ago

victormongi commented 3 months ago

How to use this with React Native Expo, thank you

Felipe-OT commented 1 month ago

I can only help you to configure for android device.

You have to execute npx expo prebuild to create android and ios folders.

1º - Go to build.gradle inside android/app, and add this inside dependencies {} :

implementation project(':react-native-incall-manager')

2º - Open settings.gradle inside android folder and add:

include ':react-native-incall-manager';
project(':react-native-incall-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-incall-manager/android')

3º - Open android/app/src/main/AndroidManifest.xml, and check if you have the following permissions:

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH" />

Now, you can build your project using eas build or other method, and start using this lib.

victormongi commented 1 month ago

I can only help you to configure for android device.

You have to execute npx expo prebuild to create android and ios folders.

1º - Go to build.gradle inside android/app, and add this inside dependencies {} :

implementation project(':react-native-incall-manager')

2º - Open settings.gradle inside android folder and add:

include ':react-native-incall-manager';
project(':react-native-incall-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-incall-manager/android')

3º - Open android/app/src/main/AndroidManifest.xml, and check if you have the following permissions:

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH" />

Now, you can build your project using eas build or other method, and start using this lib.

Thank you Ill try it out