Giter Site home page Giter Site logo

Comments (13)

 avatar commented on August 17, 2024 3

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

from react-native-textinput-effects.

Moyal17 avatar Moyal17 commented on August 17, 2024

get the same issue

from react-native-textinput-effects.

Moyal17 avatar Moyal17 commented on August 17, 2024

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>

from react-native-textinput-effects.

elliotcw avatar elliotcw commented on August 17, 2024

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

from react-native-textinput-effects.

halilb avatar halilb commented on August 17, 2024

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.

from react-native-textinput-effects.

halilb avatar halilb commented on August 17, 2024

Closing for inactivity.

from react-native-textinput-effects.

Oblongmana avatar Oblongmana commented on August 17, 2024

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

from react-native-textinput-effects.

halilb avatar halilb commented on August 17, 2024

Thanks for the info @Oblongmana.

I'll test again using backgroungColor prop.

from react-native-textinput-effects.

mymai91 avatar mymai91 commented on August 17, 2024

same issue

from react-native-textinput-effects.

kie-sp avatar kie-sp commented on August 17, 2024

I also have the same issue

from react-native-textinput-effects.

csotiriou avatar csotiriou commented on August 17, 2024

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

See this: facebook/react-native#13984

from react-native-textinput-effects.

sinay18 avatar sinay18 commented on August 17, 2024

Hello Guys,

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

Thanks

from react-native-textinput-effects.

rajeevrocker7 avatar rajeevrocker7 commented on August 17, 2024

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

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

from react-native-textinput-effects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.