mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9ed6dc750c
Summary: When I installed React Native and loaded it up in the emulator, I wasn't really sure what the menu button was. I clicked around through the default emulator for advice but couldn't find it. So, instead this version now tells you directly what the key commands are. Because it needs to show both<key>ctrl</key> and <key>cmd</key> (depending on dev's OS) I opted to include both and felt like it needed spaces around the `+`. So, I made that consistent everywhere. ## Test Plan n/a ## Changelog [Android] [Fixed] - Improves the initial copy for creating a new RN project on android Pull Request resolved: https://github.com/facebook/react-native/pull/25353 Differential Revision: D15956358 Pulled By: mdvacca fbshipit-source-id: aa320e30da53e6ba35f879f57740777bdee26618
36 lines
771 B
JavaScript
36 lines
771 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
import React from 'react';
|
|
import {Platform, StyleSheet, Text} from 'react-native';
|
|
|
|
const styles = StyleSheet.create({
|
|
highlight: {
|
|
fontWeight: '700',
|
|
},
|
|
});
|
|
|
|
const ReloadInstructions = Platform.select({
|
|
ios: () => (
|
|
<Text>
|
|
Press <Text style={styles.highlight}>Cmd + R</Text> in the simulator to
|
|
reload your app's code.
|
|
</Text>
|
|
),
|
|
default: () => (
|
|
<Text>
|
|
Double tap <Text style={styles.highlight}>R</Text> on your keyboard to
|
|
reload your app's code.
|
|
</Text>
|
|
),
|
|
});
|
|
|
|
export default ReloadInstructions;
|