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

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

Open
Volper212 opened this issue Jun 7, 2024 · 5 comments
Labels

Comments

@Volper212
Copy link

Current behaviour

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

Expected behaviour

No warning :)

How to reproduce?

Use TextInput.Icon, I used it with the props icon and onPress set. I use React 18.3.1.

What have you tried so far?

There are no defaultProps in my code, but I found them in react-native-paper in the file src/components/TextInput/Adornment/TextInputIcon.tsx (line 179).

Your Environment

software version
android 14
react 18.3.1
react-native 0.74.1
react-native-paper 5.12.3
node 20.14.0
npm or yarn 9.5.1
@Vimal1464
Copy link

Vimal1464 commented Jun 9, 2024

@Volper212
Hi I have fixed this issue, and raised Pull request

PR - #4429

@raajnadar

@zkteco-home
Copy link

#4382

@timbocole
Copy link
Contributor

Fixed by my PR #4385, due to be included in 5.12.4

@bnbon
Copy link

bnbon commented Jul 8, 2024

Fixed by my PR #4385, due to be included in 5.12.4

When will that be released?

@timbocole
Copy link
Contributor

timbocole commented Jul 8, 2024

Fixed by my PR #4385, due to be included in 5.12.4

When will that be released?

Hopefully soon 🤞, see: #4385 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants