ReloadInstructions.js 829 B

123456789101112131415161718192021222324252627282930313233343536
  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 ReloadInstructions: () => Node = Platform.select({
  19. ios: () => (
  20. <Text>
  21. Press <Text style={styles.highlight}>Cmd + R</Text> in the simulator to
  22. reload your app's code.
  23. </Text>
  24. ),
  25. default: () => (
  26. <Text>
  27. Double tap <Text style={styles.highlight}>R</Text> on your keyboard to
  28. reload your app's code.
  29. </Text>
  30. ),
  31. });
  32. export default ReloadInstructions;