Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native TextInput placeholder not visible

I'm make simple screen contains only one TextInput with placeholder, but placeholder on displayed. What is wrong?

MyComponent:

render() {
  <TextInput
    placeHolder="placeholder"
  />
}

index.js:

export default () => {
  <MyComponent />
}

wrapping TextInput into View don't help.

like image 434
CodeBy Avatar asked Nov 17 '16 13:11

CodeBy


1 Answers

Looks like you misspelled the prop placeholder to placeHolder. See https://facebook.github.io/react-native/docs/textinput.html#placeholder.

like image 95
Ferran Negre Avatar answered Oct 01 '22 08:10

Ferran Negre