Skip to content

Replace defaultProps with default function parameters in components #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tchiss
Copy link

@tchiss tchiss commented May 8, 2024

Description :
This PR updates the Flag component in the react-native-flags-kit library to use default function parameters instead of defaultProps. This change is made in response to React's upcoming deprecation of defaultProps in function components, ensuring that the library remains up-to-date with the latest React standards and practices.

Key Changes:

  • Flag component previously using defaultProps now utilize default function parameters.

  • This includes Flag component, where parameters like size and type are set to default directly within the function signature.

Related Issue:
Replace defaultProps with Default Function Parameters in Flag Component

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.

1 participant