Updating to "react-native": "0.74.1 / "react": "18.2.0" results in depreciation warning of defaultProps
ERROR Warning: TextInput.Icon: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
This is noticed in TextInput.Icon, but grepping code base for defaultProps will likely reveal other instances
Current behaviour
Updating to
"react-native": "0.74.1
/"react": "18.2.0"
results in depreciation warning of defaultPropsThis is noticed in TextInput.Icon, but grepping code base for
defaultProps
will likely reveal other instancesExpected behaviour
No deprication warnings
How to reproduce?
Preview
What have you tried so far?
updating
src/components/TextInput/Adornment/TextInputIcon.tsx
Your Environment