Skip to content

Commit

Permalink
Merge pull request evblurbs#1 from Alex-Mann/Alex-Mann-patch-onChange…
Browse files Browse the repository at this point in the history
…Text-Bug

Pass value and onChangeText down to TextInput
  • Loading branch information
Alex-Mann authored May 18, 2017
2 parents d791821 + 8d4b555 commit 0794d1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export default class TextField extends Component {
onBlur && onBlur();
}}
onChangeText={(text) => {
this.setState({text});
onChangeText && onChangeText(text);
}}
onChange={(event) => {
Expand All @@ -95,7 +94,7 @@ export default class TextField extends Component {
onChange && onChange(event);
}}
ref="input"
value={this.state.text}
value={value}
{...props}
/>
<Underline
Expand Down

0 comments on commit 0794d1f

Please sign in to comment.