Skip to content

Cannot selectContactPhone on iOS #18

Description

@MariuszSpeednet

When using "selectContactPhone" nothing happens.

Code:

selectContactPhone()
      .then(selection => {
        if (!selection) {
          return null;
        }

        let { contact, selectedPhone } = selection;
        console.log(`Selected ${selectedPhone.type} phone number ${selectedPhone.number} from ${contact.name}`);
        return selectedPhone.number;
      });

Logs:

[reports] Main Thread Checker: UI API called on a background thread: -[UIWindow rootViewController]
PID: 450, TID: 136063, Thread name: (none), Queue name: com.facebook.react.SelectContactQueue, QoS: 0
[Assert] Cannot be called with asCopy = NO on non-main thread.
[Assert] Cannot be called with asCopy = NO on non-main thread.
Warning: Attempt to present <CNContactPickerViewController: 0x1038f5730> on <RNNStackController: 0x104005000> whose view is not in the window hierarchy!

Using RN version 0.60.4 and react-native-navigation 4.0.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions