-
Notifications
You must be signed in to change notification settings - Fork 734
Picker - migrate prop deprecation end #3737
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
base: v8
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adids1221 please add docs to https://wix.github.io/react-native-ui-lib/docs/getting-started/v8
@M-i-k-e-l you assigned me without any comment ? |
docs/getting-started/v8.md
Outdated
@@ -73,3 +73,6 @@ Removed (use `PanView` instead) | |||
Use the `backgroundColor` prop instead of `contentContainerStyle={{backgroundColor}}` | |||
Fix card being transparent on Android | |||
`onCollapseChanged` will now be called after the animation has ended (as was intended) | |||
|
|||
### Picker | |||
Removed `migrate` prop - the picker now only supports the new value format (direct values instead of `{value, label}` objects). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's improve this, see my PM
It was pending, look at the PM and improve the docs please |
…Picker components
…recated props and updating value handling
…fy label handling
docs/getting-started/v8.md
Outdated
The component was refactored to simplify its API and improve type safety. | ||
|
||
Props migration: | ||
- `migrate` - Removed (new API is default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `migrate` - Removed (new API is default) | |
- `migrate` - Removed |
There is no old API so there is no default - there is only one API
docs/getting-started/v8.md
Outdated
- `getItemValue` - Removed (value extraction is now automatic from `item.value`) | ||
- `getItemLabel` - Removed (label extraction is now automatic from `item.label`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe: "Use item.<X>
to get <X>
"
- `getItemValue` - Removed (use `item.value` to get value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Search for getItemLabel
and getItemValue
in the repo and remove them (even in comments)
Description
Picker -
migrate, getItemLabel, getItemLabel
prop deprecation end, remove themigrate, getItemLabel, getItemLabel
prop from component usage.Based on #3718
Changelog
Picker -
migrate, getItemLabel, getItemLabel
prop deprecation end.Additional info
MADS-4195