Skip to content

πŸ› Bug Report: Android build fails with react-native-contacts on React Native 0.79 when newArchEnabled=trueΒ #785

@ajouve

Description

@ajouve

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:

newArchEnabled=false

ℹ️ Environment:

  • React Native: 0.79.2
  • react-native-contacts: 8.0.5
  • Platform: Android
  • Architecture: New architecture enabled (Fabric / TurboModules)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions