Replace defaultProps with default function parameters in components #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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