I am new to react native. I want to create a menu slider like control center in IOS. I thought I can use react-native-drawer but the library doesn't provide a way to open drawer from the bottom. can you guys suggest something to implement that?
If you would like to determine if drawer is open or closed, you can do the following: import { useDrawerStatus } from '@react-navigation/drawer'; // ...
What you are looking for are called Bottom Sheets in Material Design (see here for examples) and Action Sheets in iOS (customized action sheets more precisely, like this one).
I found two React Native libraries which implement Bottom Sheets (so only for android):
And this library implements custom Action Sheets (so only for ios):
I didn't find any RN library which works for both platforms, so we will have to be happy with what we've got. Good luck!
Edit: Since my answer a new package came out: https://github.com/beefe/react-native-actionsheet. Thanks @thibautnoah for pointing it out.
This library react-native-modalbox implements this behaviour. It's cross platform as well and pure javascript.
https://github.com/maxs15/react-native-modalbox
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