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
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
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
The text was updated successfully, but these errors were encountered:
Current behaviour
Expected behaviour
No warning :)
How to reproduce?
Use
TextInput.Icon
, I used it with the propsicon
andonPress
set. I use React 18.3.1.What have you tried so far?
There are no
defaultProps
in my code, but I found them inreact-native-paper
in the filesrc/components/TextInput/Adornment/TextInputIcon.tsx
(line 179).Your Environment
The text was updated successfully, but these errors were encountered: