You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a Picker and not using the 'migrate' flag, there's a warning about using the 'migration' prop.
Probably wrong check, as passing migrate=false does not trigger the warning.
Related to
Components
Demo
Docs
Typings
Steps to reproduce
Copy the code snippet and run. :)
Expected behavior
Using the 'migrate' flag with value either 'false' or 'true' triggers a warning.
Actual behavior
Not using the 'migrate' flag triggers the warning.
Using the 'migrate' flag with value 'false' does not trigger the warning.
I can confirm this. I was searching for this usage, then realised they have this defaulted as true.
Take a look at node_modules/react-native-ui-lib/src/components/picker/index.js line 70.
If you set it to false manually Picker won't work properly. Kind of annoying, but I guess they will get it done if the new version if fully prepared.
Hi @king960 and @janoslc ,
The migrate prop will be deprecated in the next major version v8.
I think we can close this issue, make sure to migrate your code and remove the usage of the migrate prop.
Hey @adids1221! Thank you for your response. We understood that migrate prop will be removed from the next major version. Our problem is that we don't use it, yet we get a warning as if we did.
Therefore the issue is valid, of course it's not a blocker, but it shouldn't warn us if we don't use migrate.
Description
When creating a Picker and not using the 'migrate' flag, there's a warning about using the 'migration' prop.
Probably wrong check, as passing migrate=false does not trigger the warning.
Related to
Steps to reproduce
Copy the code snippet and run. :)
Expected behavior
Using the 'migrate' flag with value either 'false' or 'true' triggers a warning.
Actual behavior
Not using the 'migrate' flag triggers the warning.
Using the 'migrate' flag with value 'false' does not trigger the warning.
More Info
"react-native-ui-lib": "^7.23.2"
Code snippet
<Picker
value={''}
onChange={(value) => setTeam(value)}
items={[{value: '1', label: 'one'}]}
/>
Screenshots/Video
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: