0.2.0 • Published 1 year ago

@seung-ju/react-native-action-sheet v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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

0.2.0

1 year ago