Skip to content

Commit

Permalink
Merge pull request #496 from Safari92/master
Browse files Browse the repository at this point in the history
wrong javascript in example
  • Loading branch information
vjeux committed Mar 30, 2015
2 parents f3cd27c + 5f9c16a commit 032b3cd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit 032b3cd

Please sign in to comment.