@@ -32,7 +32,7 @@ import {SafeAreaView, Text, ScrollView, TouchableOpacity} from 'react-native';
3232import {ActionSheet } from ' react-native-actionsheet-cstm' ;
3333
3434const App = () => {
35- const [showActionSheed , setShowActionSheet] = useState <boolean >(false );
35+ const [showActionSheet , setShowActionSheet] = useState <boolean >(false );
3636
3737 const onShowActionSheet = () => {
3838 setShowActionSheet (true );
@@ -58,7 +58,7 @@ const App = () => {
5858 < / TouchableOpacity >
5959
6060 < ActionSheet
61- visible = {showActionSheed }
61+ visible = {showActionSheet }
6262 onClose = {onCloseActionSheet }
6363 actionItems = {[
6464 {
@@ -94,22 +94,22 @@ export default App;
9494
9595## ActionSheetProps
9696
97- | Name | Type | Default | Description |
98- | -------------------- | -------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------- |
99- | visible | boolean | false | Show the Action sheet |
100- | onClose | function | null | Trigger a function asking to close the Action sheet. |
101- | actionItems | Array<ActionItem> | null | (array of ActionItem) - a list of button |
102- | onShow? | function | null | The onShow prop allows passing a function that will be called once the Action sheet has been shown. |
103- | onDismiss? | function | null | The onDismiss prop allows passing a function that will be called once the Action sheet has been dismissed. |
104- | backdropStyle? | StyleProp<ViewStyle> | null | Back drop style |
105- | containerStyle? | StyleProp<ViewStyle> | null | Container style |
106- | titleContainerStyle? | StyleProp<ViewStyle> | null | Container title style |
107- | title? | string | 'Action Sheet Title' | Action sheet title |
108- | titleTextStyle? | StyleProp<ViewStyle> | null | Action sheet title style |
109- | cancelButtonStyle? | StyleProp<ViewStyle> | null | Action sheet cancel button style |
110- | cancelText? | string | 'Cancel' | Action sheet cancel button title |
111- | cancelTextStyle? | StyleProp<ViewStyle> | null | Action sheet cancel button text style |
112- | hiddeCancel | boolean | false | Hidde the Action sheet Cancel button |
97+ | Name | Type | Default | Description |
98+ | -------------------- | -------------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
99+ | visible | boolean | false | Show the Action sheet |
100+ | onClose | function | null | Trigger a function asking to close the Action sheet. |
101+ | actionItems | Array<ActionItem> | null | (array of ActionItem) - a list of button |
102+ | onShow? | function | null | The onShow prop allows passing a function that will be called once the Action sheet has been shown. |
103+ | onDismiss? | function | null | The onDismiss prop allows passing a function that will be called once the Action sheet has been dismissed. |
104+ | backdropStyle? | StyleProp<ViewStyle> | null | Back drop style |
105+ | containerStyle? | StyleProp<ViewStyle> | null | Container style |
106+ | titleContainerStyle? | StyleProp<ViewStyle> | null | Container title style |
107+ | title? | string | null | Action sheet title (Not required) |
108+ | titleTextStyle? | StyleProp<ViewStyle> | null | Action sheet title style |
109+ | cancelButtonStyle? | StyleProp<ViewStyle> | null | Action sheet cancel button style |
110+ | cancelText? | string | 'Cancel' | Action sheet cancel button title |
111+ | cancelTextStyle? | StyleProp<ViewStyle> | null | Action sheet cancel button text style |
112+ | hideCancel | boolean | false | Hidde the Action sheet Cancel button |
113113
114114## ActionItem
115115
0 commit comments