I am converting an iOS app over and need to implement the equivalent of a UIActionSheet from iOS to Android.
What UI element would most closely mimic this.
I am targeting Android 2.2 and up.
React Native Action Sheet is a cross-platform React Native component that uses the native UIActionSheet on iOS and a pure JS implementation on Android.
You can present an action sheet from a toolbar, tab bar, button bar item, or from a view.
An action sheet is a modal view that presents choices related to an action people initiate.
Enter Swift as Language and Storyboard as User Interface. Choose Next. Go to the Storyboard, drag a Button from the Object Library to the View Controller inside the Storyboard. Double-click the Button and give it a title of"Display Action Sheet".
You would use an AlertDialog or Dialog object. The AlertDialog class does what you ask. Dialog allows for more customizability.
Edit: if you want the same animative effect, you're going to need to use a SlidingDrawer.
Note: None of these classes, except maybe the AlertDialog, are as easy to use as the UIActionSheet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With