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

Add conditional comments around methods not supported in Mac Catalyst #779

Merged
merged 1 commit into from
Oct 19, 2019

Conversation

leonid-shevtsov
Copy link
Contributor

I've successfully built and used react-native-fs on macOS 10.15 with the just-released Mac Catalyst. 🎉

There was one slight issue: a couple of methods rely on deprecated iOS APIs (see https://developer.apple.com/documentation/photokit/phasset/1624782-fetchassetswithalasseturls). These APIs aren't supported under Mac Catalyst.

I don't know if it's worth fixing the methods (haven't used them myself), but at least there's an easy way to exclude them from the Catalyst build with conditional comments.

Thanks!

@itinance itinance merged commit 82980c3 into itinance:master Oct 19, 2019
@itinance
Copy link
Owner

Thanks! I've added notes on the README that these functions won't be available on Mac Catalyst

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.

2 participants