react-native-action-sheet icon indicating copy to clipboard operation
react-native-action-sheet copied to clipboard

Fix connectActionSheet to exclude ActionSheetProps from return type

Open keima opened this issue 1 year ago • 0 comments

The modification addresses an issue where react-navigation does not accept Screen components with props other than route and navigation, creating a problem since Screen components passing through connectActionSheet demand the showActionSheetWithOptions prop as dictated by ActionSheetProps.

The value of showActionSheetWithOptions defined in ActionSheetProps is already set within the connectActionSheet function, rendering it unnecessary in the return type. By removing ActionSheetProps from the function's output, we prevent the passing of redundant props and streamline the type definition of components involved.

keima avatar Oct 22 '23 16:10 keima