Skip to content

Instantly share code, notes, and snippets.

@viniciusdacal
Created February 14, 2017 18:37
Show Gist options
  • Select an option

  • Save viniciusdacal/d620536173f927d665832887b3e09771 to your computer and use it in GitHub Desktop.

Select an option

Save viniciusdacal/d620536173f927d665832887b3e09771 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { TextInput } from 'react-native';
class UselessTextInput extends Component {
constructor(props) {
super(props);
this.state = { text: 'Useless Placeholder' };
}
render() {
return (
<TextInput
onChangeText={(text) => this.setState({ text })}
value={this.state.text}
/>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment