42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
|
/**
|
||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*
|
||
|
* @flow strict-local
|
||
|
* @format
|
||
|
*/
|
||
|
|
||
|
import type {Node} from 'react';
|
||
|
|
||
|
import StyleSheet from '../../StyleSheet/StyleSheet';
|
||
|
import Text from '../../Text/Text';
|
||
|
import Platform from '../../Utilities/Platform';
|
||
|
import React from 'react';
|
||
|
|
||
|
const styles = StyleSheet.create({
|
||
|
highlight: {
|
||
|
fontWeight: '700',
|
||
|
},
|
||
|
});
|
||
|
|
||
|
const DebugInstructions: () => Node = 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;
|