Skip to content
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

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

Open
3 tasks
SupriyaPKalghatgi opened this issue May 9, 2024 · 8 comments
Labels
bug a bug in one of the components

Comments

@SupriyaPKalghatgi
Copy link

Description

Upgrading to latest of react native and expo, I get this with RNUI ActionSheet

Related to

  • Components

More Info

Screenshots/Video

image

Environment

  • React Native version: 0.74.1
  • React Native UI Lib version: 7.21.2
  • Expo version: 51.0.0

Affected platforms

  • Android
  • iOS
@SupriyaPKalghatgi SupriyaPKalghatgi added the bug a bug in one of the components label May 9, 2024
@Eliost
Copy link

Eliost commented May 16, 2024

Same warning for me

@ronnioliveira
Copy link

same

@SwanHub
Copy link

SwanHub commented May 21, 2024

here too

@thanhmati
Copy link

image
same too

@Arnoldnuo
Copy link

same too

@alexattt
Copy link

alexattt commented Jun 6, 2024

same warning, after updating expo sdk and react native. for now, I see it when using Dash component, which uses defaultProps.
hope this will be resolved soon!

@crazyshakalaka
Copy link

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

me tooooo

I hope to solve this problem as soon as possible

@crazyshakalaka
Copy link

I can bring up a PR myself to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components
Projects
None yet
Development

No branches or pull requests

8 participants