Closed anija closed 2 years ago
Hi @anija You also need to patch this in
import { ViewPropTypes,TextInputPropTypes } from 'deprecated-react-native-prop-types'
---------------
static propTypes = {
- ...TextInput.propTypes,
+ ...TextInputPropTypes,
---------------
- for (let key in TextInput.propTypes) {
+ for (let key in TextInputPropTypes) {
if (key === 'defaultValue') {
continue
}
As React Native removed TextInput.propTypes. without it you can't change keyboardType.
Hi @anija and @imran1992 thanks for your input. These changes were just included in the 1.0.7 release, please update the rn-material-ui-textfield
version on your projects.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
rn-material-ui-textfield@1.0.6
for the project I'm working on.With the new react native 0.69, the warning (https://github.com/gabrieldonadel/rn-material-ui-textfield/issues/45) has becoming an error, and also the use of
Text.propTypes
is not working anymore.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.