@@ -25,7 +25,6 @@ const ScreenshotManager = NativeModules.ScreenshotManager;
2525const BUTTONS = [ 'Option 0' , 'Option 1' , 'Option 2' , 'Delete' , 'Cancel' ] ;
2626const DESTRUCTIVE_INDEX = 3 ;
2727const CANCEL_INDEX = 4 ;
28- const DISABLED_BUTTON_INDICES = [ 1 , 2 ] ;
2928
3029type Props = $ReadOnly < { || } > ;
3130type State = { | clicked : string | } ;
@@ -139,37 +138,6 @@ class ActionSheetAnchorExample extends React.Component<
139138 } ;
140139}
141140
142- class ActionSheetDisabledExample extends React . Component < Props , State > {
143- state = {
144- clicked : 'none' ,
145- } ;
146-
147- render ( ) {
148- return (
149- < View >
150- < Text onPress = { this . showActionSheet } style = { style . button } >
151- Click to show the ActionSheet
152- </ Text >
153- < Text > Clicked button: { this . state . clicked } </ Text >
154- </ View >
155- ) ;
156- }
157-
158- showActionSheet = ( ) => {
159- ActionSheetIOS . showActionSheetWithOptions (
160- {
161- options : BUTTONS ,
162- cancelButtonIndex : CANCEL_INDEX ,
163- destructiveButtonIndex : DESTRUCTIVE_INDEX ,
164- disabledButtonIndices : DISABLED_BUTTON_INDICES ,
165- } ,
166- buttonIndex => {
167- this . setState ( { clicked : BUTTONS [ buttonIndex ] } ) ;
168- } ,
169- ) ;
170- } ;
171- }
172-
173141class ShareActionSheetExample extends React . Component <
174142 $FlowFixMeProps ,
175143 $FlowFixMeState ,
@@ -347,12 +315,6 @@ exports.examples = [
347315 return < ActionSheetAnchorExample / > ;
348316 } ,
349317 } ,
350- {
351- title : 'Show Action Sheet with disabled buttons' ,
352- render ( ) : React . Element < any > {
353- return < ActionSheetDisabledExample / > ;
354- } ,
355- } ,
356318 {
357319 title : 'Show Share Action Sheet' ,
358320 render ( ) : React . Element < any > {
0 commit comments