mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
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 { 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>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user