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(types): add children prop to MenuView typings #416

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

marcosmoura
Copy link
Contributor

Overview

React 18 removed the children prop from the React.FC type. This PR merges the MenuComponentProps with PropsWithChildren (to restore the behavior as of React 17)

React 18 removed the `children` prop from the `React.FC` type. This PR merges the `MenuComponentProps` with `PropsWithChildren` (to restore the behavior as of React 17)
Copy link
Member

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Naturalclar Naturalclar merged commit 23c6238 into react-native-menu:master Sep 26, 2022
@marcosmoura marcosmoura deleted the patch-1 branch January 31, 2023 00:26
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.

None yet

2 participants