react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

How to use this with React Native Expo

Open victormongi opened this issue 1 year ago • 3 comments

How to use this with React Native Expo, thank you

victormongi avatar Aug 27 '24 07:08 victormongi

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.

Felipe-OT avatar Sep 30 '24 20:09 Felipe-OT

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

victormongi avatar Oct 01 '24 01:10 victormongi

i have written a plugin for expo you can use this expo-plugin)

Ahsanch11 avatar Oct 10 '25 15:10 Ahsanch11