DebugInstructions.js 979 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @flow strict-local
  8. * @format
  9. */
  10. import type {Node} from 'react';
  11. import {Platform, StyleSheet, Text} from 'react-native';
  12. import React from 'react';
  13. const styles = StyleSheet.create({
  14. highlight: {
  15. fontWeight: '700',
  16. },
  17. });
  18. const DebugInstructions: () => Node = Platform.select({
  19. ios: () => (
  20. <Text>
  21. Press <Text style={styles.highlight}>Cmd + D</Text> in the simulator or{' '}
  22. <Text style={styles.highlight}>Shake</Text> your device to open the React
  23. Native debug menu.
  24. </Text>
  25. ),
  26. default: () => (
  27. <Text>
  28. Press <Text style={styles.highlight}>Cmd or Ctrl + M</Text> or{' '}
  29. <Text style={styles.highlight}>Shake</Text> your device to open the React
  30. Native debug menu.
  31. </Text>
  32. ),
  33. });
  34. export default DebugInstructions;