morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.64k stars 563 forks source link

Use of undeclared identifier 'CNAuthorizationStatusLimited'; did you mean 'PHAuthorizationStatusLimited'? #758

Open threeinto3 opened 3 days ago

threeinto3 commented 3 days ago

I am getting this issue in RCT contacts file while making build for IOS on xcode. I am using current version of react native 0.75.4. Installation Steps

  1. npm install react-native-contacts --save
  2. Given respective permissions android and IOS. Screenshot 2024-10-16 at 12 36 01 PM
Valtory commented 2 days ago

same issue here :/

threeinto3 commented 2 days ago

Valtory

I fixed this issue by applying patch (patch-package lib.). Steps to create patch

  1. Open project in xcode
  2. create a build
  3. After getting errors press on it, then you will get option to fix it.
  4. Do same for all errors, after that you will get changes in react-native-contacts library.
  5. Last step just create patch by hitting this command npx patch-package react-native-contacts.

This is cool until we get a new update.