We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3cd27c + 5f9c16a commit 032b3cdCopy full SHA for 032b3cd
README.md
@@ -145,15 +145,15 @@ var React = require('react-native');
145
var { NativeModules, Text } = React;
146
147
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
156
render: function() {
- getInitialState() {
- return { text: 'Goodbye World.' };
- },
- componentDidMount() {
- NativeModules.MyCustomModule.processString(this.state.text, (text) => {
- this.setState({text});
- });
157
return (
158
<Text>{this.state.text}</Text>
159
);
0 commit comments