Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChristiaanHaas opened this issue Mar 21, 2017 · 13 comments

Comments

@ChristiaanHaas
Copy link

When adding a backgroundColor to Hoshi on android:

screenshot_1490130806

@Moyal17
Copy link

Moyal17 commented Mar 29, 2017

get the same issue

@Moyal17
Copy link

Moyal17 commented Mar 29, 2017

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>

@elliotcw
Copy link

elliotcw commented Apr 3, 2017

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

@halilb
Copy link
Owner

halilb commented Jul 3, 2017

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
Copy link
Owner

halilb commented Nov 19, 2017

Closing for inactivity.

@halilb halilb closed this as completed Nov 19, 2017
@Oblongmana
Copy link

@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!

@halilb
Copy link
Owner

halilb commented Nov 20, 2017

Thanks for the info @Oblongmana.

I'll test again using backgroungColor prop.

@halilb halilb reopened this Nov 20, 2017
@ghost
Copy link

ghost commented Nov 28, 2017

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

@mymai91
Copy link

mymai91 commented Jan 6, 2018

same issue

@kie-sp
Copy link

kie-sp commented Apr 14, 2018

I also have the same issue

@csotiriou
Copy link

csotiriou commented May 14, 2018

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

See this: facebook/react-native#13984

@sinay18
Copy link

sinay18 commented Oct 18, 2018

Hello Guys,

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

Thanks

@rajeevrocker7
Copy link

rajeevrocker7 commented Jul 30, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants