Skip to content

Commit bc19a69

Browse files
abhishekkrcharpeni
authored andcommitted
Fixed props.md example on Greetings component (#552)
Greetings component example in procs.md didnn't have enclosing jsx tag and thus failed, this is to fix that.
1 parent 54f953b commit bc19a69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/props.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ import { AppRegistry, Text, View } from 'react-native';
3737
class Greeting extends Component {
3838
render() {
3939
return (
40-
<Text>Hello {this.props.name}!</Text>
40+
<View style={{alignItems: 'center'}}>
41+
<Text>Hello {this.props.name}!</Text>
42+
</View>
4143
);
4244
}
4345
}

0 commit comments

Comments
 (0)