Skip to content

Instantly share code, notes, and snippets.

@kiok46
Created June 10, 2018 10:47
Show Gist options
  • Save kiok46/cde9c0cc476ccdb03fcc71600776063e to your computer and use it in GitHub Desktop.
Save kiok46/cde9c0cc476ccdb03fcc71600776063e to your computer and use it in GitHub Desktop.
Redux, Store, Actions, Reducers and logger: Get Started and a little further (1)
export default class CustomTextInput extends Component {
onTextChange = (text) => {
// Step-12
}
render() {
return (
<View
style={{ flex: 1, justifyContent: 'center', alignItems: 'center'}}
>
<TextInput
onChangeText={(text) => this.onTextChange(text)}
placeholder="Search"
style={{ height: 80, width: 200, fontSize: 30 }}
/>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment