react-native-textinput-effects icon indicating copy to clipboard operation
react-native-textinput-effects copied to clipboard

Error while updating property 'backgroundColor' in shadow node of type: AndroidTextInput

Open ChristiaanHaas opened this issue 7 years ago • 13 comments

When adding a backgroundColor to Hoshi on android:

screenshot_1490130806

ChristiaanHaas avatar Mar 21 '17 13:03 ChristiaanHaas

get the same issue

Moyal17 avatar Mar 29 '17 08:03 Moyal17

try this One, the Hoshi in the Example page works for me

    <View style={[styles.card1, { backgroundColor: '#F9F7F6' }]}>
      <Text style={styles.title}>Hoshi</Text>
      <Hoshi
        label={'Town'}
        borderColor={'#b76c94'}
        maskColor={'#F9F7F6'}
      />
      <Hoshi
        style={styles.input}
        label={'Street'}
        maskColor={'#F9F7F6'}
        borderColor={'#7ac1ba'}
      />
    </View>

Moyal17 avatar Mar 29 '17 08:03 Moyal17

The example doesn't use the backgroundColor prop though. Agreed removing the backgroundColor prop is a workaround.

elliotcw avatar Apr 03 '17 13:04 elliotcw

Sorry for answering so late @ChristiaanHaas.

I just tried this on the example project and it worked well:

<Hoshi
  style={{ backgroundColor: '
  maskColor={'red'}
  label={'Town'}
  borderColor={'#b76c94'}
 />

Which react native version are you using? I recently upgraded the example project to react native 0.44, and that probably helped fixing this.

halilb avatar Jul 03 '17 11:07 halilb

Closing for inactivity.

halilb avatar Nov 19 '17 18:11 halilb

@halilb I've just come across this issue in

"react-native": "^0.49.5",
"react-native-textinput-effects": "^0.4.2",

I think the issue is that the README.md uses backgroundColor as an attribute (not a style value, an attribute) for the Hoshi example - it might need updating? The example page looks fine, it's just the README that has an incorrect example

Great library though, saved me a bunch of time, and the elements all look fantastic!

Oblongmana avatar Nov 20 '17 10:11 Oblongmana

Thanks for the info @Oblongmana.

I'll test again using backgroungColor prop.

halilb avatar Nov 20 '17 11:11 halilb

got same error. its work on ios, but backgroundColor doesnt work on TextInput android. <TextInput backgroundColor={'red'} onChangeText={onChangeText} value={inputText} />

ghost avatar Nov 28 '17 09:11 ghost

same issue

mymai91 avatar Jan 06 '18 13:01 mymai91

I also have the same issue

kie-sp avatar Apr 14 '18 17:04 kie-sp

Updating my Target SDK version to version 27 seems to fix the issue.

See this: https://github.com/facebook/react-native/issues/13984

csotiriou avatar May 14 '18 17:05 csotiriou

Hello Guys,

I am also struggling with this...any update?

Thanks

sinay18 avatar Oct 18 '18 09:10 sinay18

For 'TextInput' in style try after removing backgroundColor, color, if passed. @sinay18

textInputStyle: { ... backgroundColor: '#FFFFF', // remove this color: 'black' . //remove this }

rajeevrocker7 avatar Jul 30 '19 14:07 rajeevrocker7