From 5f9c16a7057441d518709f08b8463f5875ae0895 Mon Sep 17 00:00:00 2001 From: Christopher Glantschnig Date: Mon, 30 Mar 2015 17:04:20 +0200 Subject: [PATCH] wrong javascript in example --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c8dbf0814a3d90..39e75375356b51 100644 --- a/README.md +++ b/README.md @@ -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 ( {this.state.text} );