react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

Using "padding" prop in TextInput gives an error

Open ElavanResu opened this issue 7 years ago • 2 comments

react-native: 0.61.2 react-native-paper: 2.16.0

When I am using "padding" prop in TextInput, my app gives me an error as "Error in updating property 'padding' in shadow node of type: AndroidTextInput"

IMG_20191016_161219

Code

       <TextInput
          label='Email'
          value={''}
          style={{ backgroundColor: 'transparent' }}
          dense
          padding={'none'}
        />

ElavanResu avatar Oct 16 '19 10:10 ElavanResu

Hi,

looks like [email protected] doesn't support padding prop.

You can use latest version of module. Simply run:

yarn add react-native-paper@beta

and pick version 3.0.0-alpha.5

I tested it on my device and it works :)

tomekvenits avatar Oct 17 '19 09:10 tomekvenits

@venits Yes, you're right. However there is a PR that removes that prop and we are likely gonna merge it. https://github.com/callstack/react-native-paper/pull/1394

Trancever avatar Oct 17 '19 12:10 Trancever