Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connectActionSheet to exclude ActionSheetProps from return type #316

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

keima
Copy link
Contributor

@keima keima commented Oct 22, 2023

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.

@bradbyte bradbyte merged commit f344bdb into expo:master Apr 5, 2024
@keima keima deleted the fix-connectactionsheet-return-type branch April 5, 2024 06:42
@keima
Copy link
Contributor Author

keima commented Apr 5, 2024

Thanks for merging it!

@bradbyte
Copy link
Collaborator

bradbyte commented Apr 6, 2024

I'm sorry it took so long 🤕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants