Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunlight3d committed Jun 20, 2017
1 parent 5e368b0 commit b6a8f32
Show file tree
Hide file tree
Showing 25 changed files with 6,768 additions and 50 deletions.
Binary file modified .DS_Store
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,55 @@ Nguyen Duc Hoang - [email protected]
React Native tutorial video
*/
import React from 'react';
import {AppRegistry, StyleSheet, Text, View, StatusBar} from 'react-native';
import {AppRegistry, StyleSheet, Text, View, StatusBar, TextInput} from 'react-native';

export default class AutoLayoutComponent extends React.Component {
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
text: ""
}
}
/*
handleChangeText = (typedText) => {
this.setState({text: typedText});
}
*/
render() {
return (
<View
style={
{
flex: 1,
flexDirection: 'column',
justifyContent: 'flex-start',
alignItems: 'flex-end'
}
}>
<StatusBar hidden={true} />
<View
<View style={
{
padding: 10
}
}>
<TextInput
style={
{
width: 60,
height: 60,
backgroundColor: 'red'
height: 50
}
}/>
<View
style={
{
width: 60,
height: 60,
backgroundColor: 'green'
}
placeholder="Type your text here"
onChangeText={
(typedText) => {
this.setState({text: typedText});
}
}/>
<View
}
value={this.state.text}
/>
<Text
style={
{
width: 60,
height: 60,
backgroundColor: 'blue'
padding: 20,
fontSize: 30
}
}/>
}>
You type: {this.state.text}
</Text>
<StatusBar hidden={true}/>
</View>
);
}
}

AppRegistry.registerComponent('Style a component ?', () => AutoLayoutComponent);
// skip this line if using Create React Native App
AppRegistry.registerComponent('Example of text input', () => App);
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions React Native tutorial-9-Handling touches/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions React Native tutorial-9-Handling touches/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b6a8f32

Please sign in to comment.