Skip to content

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