Skip to content

Commit 032b3cd

Browse files
committed
Merge pull request #496 from Safari92/master
wrong javascript in example
2 parents f3cd27c + 5f9c16a commit 032b3cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ var React = require('react-native');
145145
var { NativeModules, Text } = React;
146146
147147
var Message = React.createClass({
148+
getInitialState() {
149+
return { text: 'Goodbye World.' };
150+
},
151+
componentDidMount() {
152+
NativeModules.MyCustomModule.processString(this.state.text, (text) => {
153+
this.setState({text});
154+
});
155+
},
148156
render: function() {
149-
getInitialState() {
150-
return { text: 'Goodbye World.' };
151-
},
152-
componentDidMount() {
153-
NativeModules.MyCustomModule.processString(this.state.text, (text) => {
154-
this.setState({text});
155-
});
156-
},
157157
return (
158158
<Text>{this.state.text}</Text>
159159
);

0 commit comments

Comments
 (0)