[ReactNative] Add few hints in the UI

This commit is contained in:
Alex Kotliarskyi 2015-03-31 16:04:02 -07:00
parent 774442efd2
commit 9e931e9d36
2 changed files with 7 additions and 3 deletions

View File

@ -20,8 +20,11 @@ var SampleApp = React.createClass({
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.ios.js{'\n'}
Press Cmd+R to reload
To get started, edit index.ios.js
</Text>
<Text style={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+Shift+Z for dev menu
</Text>
</View>
);
@ -43,6 +46,7 @@ var styles = StyleSheet.create({
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});

View File

@ -66,7 +66,7 @@ ws.onopen = function() {
setStatus('Debugger session #' + sessionID + ' active');
ws.send(JSON.stringify({replyID: parseInt(sessionID, 10)}));
} else {
setStatus('Waiting for simulator');
setStatus('Waiting, press ⌘R in simulator to reload and connect');
}
}