refactor: remove DefeaultProps from the DatePickerIOS component#32064
refactor: remove DefeaultProps from the DatePickerIOS component#32064Fannolo wants to merge 4 commits into
Conversation
Base commit: ff4b336 |
Base commit: ff4b336 |
|
@lunaleaps can you assign and review it? Thanks! |
|
Thanks for your contribution! Just in case you weren't aware, the change from I manually inspected this case and it does seem safe to switch to |
|
@yungsters has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thank you for your input @yungsters! I didn't know defaultProps will coerce only with |
|
@yungsters has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@yungsters has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@yungsters merged this pull request in 2fb102b. |
Summary
Closes issue #31605.
This is part of a bigger issue that plans to remove defaultProps from class components in order to provide a smoother transition to functional components.
Changelog
[General] [Changed] - Remove defaultProps from the DatePickerIOS Component.
[General] [Test] - Added snapshot test for the new component
Test Plan
Compiled the rn-tester folder to check if the behavior is consistent with the previous versions.