wrong javascript in example

This commit is contained in:
Christopher Glantschnig 2015-03-30 17:04:20 +02:00
parent f3cd27cf48
commit 5f9c16a705

View File

@ -145,7 +145,6 @@ var React = require('react-native');
var { NativeModules, Text } = React; var { NativeModules, Text } = React;
var Message = React.createClass({ var Message = React.createClass({
render: function() {
getInitialState() { getInitialState() {
return { text: 'Goodbye World.' }; return { text: 'Goodbye World.' };
}, },
@ -154,6 +153,7 @@ var Message = React.createClass({
this.setState({text}); this.setState({text});
}); });
}, },
render: function() {
return ( return (
<Text>{this.state.text}</Text> <Text>{this.state.text}</Text>
); );