wrong javascript in example
This commit is contained in:
parent
f3cd27cf48
commit
5f9c16a705
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue