For menus on React native. I still love ActionSheet, and I use @expo/react-native-action-sheet
, yes, you can use it in non-Expo React native project, pretty good. An universal ActionSheet API for Android, iOS and Web. Great! The interface is 100% match the original RN ActionSheetIOS, with some additional settings for Android and Web.
Everything works perfectly, with a problem, the signature of that function showActionSheetWithOptions()
generates too much boilerplate everytime I use it. It destroyed the simplicity of the ActionSheet.
In this blog, let’s make it simple again, if you just use RN’s ActionSheetIOS, this blog still helps you for cleaner code, if you are using Javascript, it helps too.