Merge pull request #496 from Safari92/master

wrong javascript in example
This commit is contained in:
Christopher Chedeau 2015-03-30 08:34:23 -07:00
commit 032b3cd841
1 changed files with 8 additions and 8 deletions

View File

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