facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.87k stars 24.3k forks source link

TextInput > Placeholder prop does not re-render #15348

Closed joncursi closed 7 years ago

joncursi commented 7 years ago

Consider the following example:

<TextInput
  placeholder={this.state.placeholder}
/>

The placeholder will not re-render with new text, even if state changes.

rmevans9 commented 7 years ago

I just gave this a test and was unable to repro in Snack with SDK 19 (RN 0.46.1). Could you provide more information?

https://snack.expo.io/Byxte-gvZ

hramos commented 7 years ago

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!