-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Alert Button automatically positioning with 'cancel' style #26419
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.60 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
|
You are giving |
Your comment doesn't really address the issue I raised. I understand Apple's guidelines, and am attempting to follow them in the example I cite above. I would like, however, for the |
Any updates about this one? A good example of what we want here is the Face ID Apple popup. It has the cancel on the left with regular weight and the Ok at the right with bold weight. Is it possible to make the Alert component behave the same way? |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Hi React Native Team,
It would appear that applying a style of 'cancel' to a button in the Alert API will automatically position that button first in the alert. I expect the array index of buttons (objects) to determine position, and not the style. I could not find any information related to this issue in the docs. The screenshot below comes from my iOS IPhone XR simulator.
Could you look into this issue? Thank you in advance
React Native version:
Steps To Reproduce
Describe what you expected to happen:
I would like the button with the 'cancel' style to appear to the right of the 'discard' button (essentially, I'd like a 'Save' button with bold lettering).
Snack, code example, screenshot, or link to a repository:
The following code:
will unexpectedly place the 'Save' alert button on the left-hand side of the Alert:
I'm not entirely sure if this is a true issue or intended behavior, but thought to report just in case.
The text was updated successfully, but these errors were encountered: