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
38 lines
921 B
JavaScript
38 lines
921 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 DebugInstructions = Platform.select({
|
|
ios: () => (
|
|
<Text>
|
|
Press <Text style={styles.highlight}>Cmd + D</Text> in the simulator or{' '}
|
|
<Text style={styles.highlight}>Shake</Text> your device to open the React
|
|
Native debug menu.
|
|
</Text>
|
|
),
|
|
default: () => (
|
|
<Text>
|
|
Press <Text style={styles.highlight}>Cmd or Ctrl + M</Text> or{' '}
|
|
<Text style={styles.highlight}>Shake</Text> your device to open the React
|
|
Native debug menu.
|
|
</Text>
|
|
),
|
|
});
|
|
|
|
export default DebugInstructions;
|