-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Support react-native-macos #361
Comments
hello, I do not plan to do this but am open to be hired to do this or review a PR that implements this. 🙂 thank you! |
@shahthepro It seems like you have to use Mac Catalyst since |
AppKit has a different API instead of |
Here's a simple example in Swift on how to open a file DispatchQueue.main.async {
do {
let panel = NSOpenPanel()
panel.allowsMultipleSelection = false
panel.canChooseDirectories = false
if panel.runModal() == .OK {
if let u = panel.url {
let base64 = try Data(contentsOf: u).base64EncodedString())
} else {
// error
}
} else {
// ...
}
}
catch {
// exception
}
} |
It seems to be hard because AppKit has NSOpenPanel and NSSavePanel separately. |
#612 added the barebones support I have tested only on mac os |
done #612 |
Feature request
Add support for react-native-macos npm package and
macOS
target.The text was updated successfully, but these errors were encountered: