1.0.3 • Published 4 years ago
reac-native-action-sheets v1.0.3
react-native-action-sheet
Installation
npm i reac-native-action-sheet
import ActionSheet from 'reac-native-action-sheet'
const [actionSheetVisibility, setActionSheetVisibility] = React.useState(
true,
);
<ActionSheet
onClose={() => setActionSheetVisibility(!actionSheetVisibility)} // to close the modal
visibility={actionSheetVisibility} // true to show and false to hide, default=false
actionLabel={[
{
id: 1,
name: 'adasdsa',
},
{
id: 1,
name: 'Cancel',
cancel: true,
},
]}
1.0.3
4 years ago