wrong javascript in example

This commit is contained in:
Christopher Glantschnig 2015-03-30 17:04:20 +02:00
parent f3cd27cf48
commit 5f9c16a705
1 changed files with 8 additions and 8 deletions

View File

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