@seung-ju/react-native-action-sheet
v0.2.0
Published
ActionSheet for react native
Downloads
1
Readme
@seung-ju/react-native-action-sheet
ActionSheet for react native
Installation
npm install react-native-action-sheet
Usage
import ActionSheet from '@seung-ju/react-native-action-sheet';
// ...
ActionSheet.open('Title', 'Message', [
{
text: 'Button 1',
onPress: () => {
Alert.alert('Button 1');
},
},
{
text: 'Button 2',
onPress: () => {
Alert.alert('Button 2');
},
style: 'destructive',
},
{
text: 'Cancel',
onPress: () => {
Alert.alert('Cancel');
},
style: 'cancel',
},
]);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT