Summary:
After upgrading the app to React Native 0.79, the Android build fails when newArchEnabled=true, due to an incompatibility in react-native-contacts with the new architecture (TurboModules + Codegen). The ContactsManager class does not implement a required method from NativeContactsSpec.
π₯ Error output:
ContactsManager is not abstract and does not override abstract method removeContactsFromGroup(String, ReadableArray, Promise) in NativeContactsSpec
public class ContactsManager extends NativeContactsSpec implements ActivityEventListener {
^
β
Temporary Workaround:
Set the following in android/gradle.properties to disable the new architecture:
βΉοΈ Environment:
- React Native: 0.79.2
- react-native-contacts: 8.0.5
- Platform: Android
- Architecture: New architecture enabled (Fabric / TurboModules)