Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.76.0 support #761

Closed
wants to merge 1 commit into from

Conversation

SolankiYogesh
Copy link

Working Example (updated to react native 0.76.0)

https://github.com/SolankiYogesh/react-native-contacts/tree/example

@@ -66,7 +66,7 @@ - (NSDictionary *)constantsToExport
} else if (authStatus == CNAuthorizationStatusAuthorized){
resolve(@"authorized");
} else if(@available(iOS 18, *)) {
if (authStatus == CNAuthorizationStatusLimited) {
if (authStatus == PHAuthorizationStatusLimited) {
Copy link
Owner

@morenoh149 morenoh149 Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need to define PHAuthorizationStatusLimited within checkPermission?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh think i did something wrong ☠️
Well i am not ios developer these are xcode suggestions so its worked in my current project with new arch so thats why i added this code.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to close this PR since you are not an ios developer. If you are not sure then it may just make things more confusing.

@EnricoMazzu
Copy link
Contributor

EnricoMazzu commented Oct 31, 2024

This change sounds strange.

CNContantStore return a value of CNAuthorizationStatus enum:
CNAuthorizationStatus

PHAuthorizationStatusLimited is a value of another enum:
PHAuthorizationStatus

@morenoh149 morenoh149 closed this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants