Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this with React Native Expo #248

Open
victormongi opened this issue Aug 27, 2024 · 2 comments
Open

How to use this with React Native Expo #248

victormongi opened this issue Aug 27, 2024 · 2 comments

Comments

@victormongi
Copy link

How to use this with React Native Expo,
thank you

@Felipe-OT
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants