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

feat: add visionOS support #622

Merged
merged 2 commits into from Feb 22, 2024
Merged

Conversation

thiagobrez
Copy link
Contributor

This PR adds support for React Native visionOS, the new out-of-tree platform.

Vision OS has the new Optic ID biometric, but it behaves same as on iOS. All APIs used here are supported, so it was just a matter of considering TARGET_OS_VISION in the same preprocessor directives that already had TARGET_OS_IOS.

If you think this is good, I can update the docs with visionOS support in a next commit :)

image

@androideveloper
Copy link
Collaborator

Hi @thiagobrez ! Great, thanks for the contribution!

Sounds good to me, I've checked with an iOS engineer 👍 Could you add some docs? 🙏

@thiagobrez
Copy link
Contributor Author

@androideveloper Awesome! Just pushed a commit mentioning visionOS in the docs + 1 missing type for BIOMETRY_TYPE.OPTIC_ID. Let me know what you think 🙌

@androideveloper
Copy link
Collaborator

thanks! @oblador could you check this as well before I merge? 🙏

Copy link
Owner

@oblador oblador left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution 👍

@androideveloper
Copy link
Collaborator

@thiagobrez could you please check this one?
#624
Seems to be a breaking change after vision os was added

@thiagobrez
Copy link
Contributor Author

@androideveloper Sure, I was following the same approach on that code block but @available(visionOS) happens to only be available on Xcode 15, missed that.

Sent a fix here: #631

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.

None yet

3 participants