forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 147
AlertMacOS should be deprecated in favor of Alert #354
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
Labels
Milestone
Comments
How can I fix that issue? @tom-un |
This was referenced Dec 1, 2020
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
This issue was closed because it has been stalled for 7 days with no activity. |
4 tasks
This issue was closed because it has been stalled for 7 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Upstream react-native has
Alert
which works on iOS and Android.Alert
has anoptions
argument that can contains a couple Android specific options.AlertIOS
also exists with some iOS specific options, but has been deprecated upstream.AlertMacOS
was created in the fork to be similar toAlertIOS
and address macOS specific concerns.AlertMacOS
should now be deprecated and replaced by additional macOS specific options in theAlert
options
argument.The macOS specific keys which are currently implemented under the covers in the
RCTAlertManager.alertWithArgs
method are:The
DefaultInputsArray
is an array of objects each with:to set the default text and placeholder string of the text inputs. It can contain 1 or 2 objects: 2 objects if the alert type is
login-password
modal
makes the Alert appear as a modal dialog instead of a sheet.critical
makes the Alert icon an exclamation mark instead of the app icon.The text was updated successfully, but these errors were encountered: