storybookjs / react-native

📓 Storybook for React Native!
https://storybook.js.org
MIT License
995 stars 142 forks source link

Warning: Support for defaultProps will be removed #582

Open martinezguillaume opened 2 weeks ago

martinezguillaume commented 2 weeks ago

Describe the bug This line in the package @storybook/addon-ondevice-controls raises a warning

Warning: TextType: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

To Reproduce Steps to reproduce the behavior:

  1. npx storybook@latest init in an existing project
  2. Run your storybook
  3. Go to "ADDONS" tab

Expected behavior No warning at all 😎

Screenshots Simulator Screenshot - iPhone 15 - 2024-06-18 at 21 50 20

dannyhw commented 2 weeks ago

ah I was hoping I could get v8 out before this became an issue haha, I can get out a fix soon for this thanks for flagging.