Hi Guys,
I found a bug in older versions of react native, I'm using v0.65.0.
It seems that your third party library `react-native-builder-bob` is failing to get the correct name of your native package in android causing the following exception in package resolution:
PackageList.java:17: error: package undefined does not exist import undefined.IntercomPackage;
More info here:
https://github.com/callstack/react-native-builder-bob/issues/429
Fix/Workaround:
Add the package name in the Android manifest.
--- a/node_modules/@intercom/intercom-react-native/android/src/main/AndroidManifest.xml
+++ b/node_modules/@intercom/intercom-react-native/android/src/main/AndroidManifest.xml
@@ -1,3 +1,3 @@
-<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.intercom.reactnative">
</manifest>
Temporary fix, will be changed for react native versions higher than 0.73. More info here https://github.com/react-native-community/discussions-and-proposals/issues/671
I think you need to update your react-native-builder-bob library and use namespace in build.gradle.
let me know if this is correct. thank you very much.