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 react-native-macos support #69

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Conversation

hsjoberg
Copy link

@hsjoberg hsjoberg commented Sep 9, 2024

Hi. I'm opening this PR to see if there is interest.

As seen by the old lib, react-native-macos should really be compatible just as-is with the iOS code as there's little to no difference between iOS and macOS regarding file system matters (in my experience at least).

The UI document picker however is different between the operating systems, so I've disabled pickFile() for react-native-macos. Every API has not been tested. But for example RNFS.LibraryDirectoryPath works without any issues.

Closes #40.

Cheers!

@hsjoberg hsjoberg marked this pull request as draft September 9, 2024 23:30
@birdofpreyru
Copy link
Owner

Thanks @hsjoberg ! It looks good to me, but I'll need to test myself it does not break stuff for Catalyst and iOS builds. I see you marked your PR as a draft, are you to push additional changes into it?

@hsjoberg
Copy link
Author

Hi @birdofpreyru.
No it's ready for testing and review.
Marked it as draft because I didn't have time last night to check iOS and perhaps also add some simple documentation.

@hsjoberg
Copy link
Author

I tried iOS. It builds and works still, @birdofpreyru.

@icrocket
Copy link

Hi, any update?

@birdofpreyru
Copy link
Owner

It now waits when I find a moment to test the PR.

@icrocket
Copy link

It now waits when I find a moment to test the PR.

Ok Thanks! I'm using a patch for now (in my test, the PR is working fine)

@birdofpreyru birdofpreyru merged commit 3fd036b into birdofpreyru:master Sep 29, 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.

react-native-macos Support
3 participants