|
| 1 | +/** |
| 2 | + * Copyright (c) Meta Platforms, Inc. and 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 | + |
| 8 | +import React from 'react'; |
| 9 | + |
| 10 | +import useBaseUrl from '@docusaurus/useBaseUrl'; |
| 11 | +import ThemedImage from '@theme/ThemedImage'; |
| 12 | + |
| 13 | +import Section from '../Section'; |
| 14 | +import SectionTitle from '../SectionTitle'; |
| 15 | + |
| 16 | +import styles from './styles.module.css'; |
| 17 | + |
| 18 | +function Framework() { |
| 19 | + return ( |
| 20 | + <Section> |
| 21 | + <SectionTitle |
| 22 | + title="Get a head start with a framework" |
| 23 | + description={ |
| 24 | + <> |
| 25 | + React Native brings the React programming paradigm to platforms like |
| 26 | + Android and iOS. It doesn’t prescribe how to do routing, or how to |
| 27 | + access each of the numerous platform APIs. To build a new app with |
| 28 | + React Native, we recommend a framework like{' '} |
| 29 | + <a href="https://expo.dev">Expo</a>. |
| 30 | + </> |
| 31 | + } |
| 32 | + /> |
| 33 | + <div className={styles.cardContainer}> |
| 34 | + <div className={styles.card}> |
| 35 | + <ThemedImage |
| 36 | + sources={{ |
| 37 | + light: '/img/homepage/file-based-routing.png', |
| 38 | + dark: '/img/homepage/file-based-routing-dark.png', |
| 39 | + }} |
| 40 | + className={styles.cardImage} |
| 41 | + alt="File system with folders and files representing screens and navigation" |
| 42 | + /> |
| 43 | + <div className={styles.cardContent}> |
| 44 | + <h4 className={styles.cardTitle}>File-based routing</h4> |
| 45 | + <p className={styles.cardDescription}> |
| 46 | + Create stack, modal, drawer, and tab screens with minimal |
| 47 | + boilerplate using your filesystem. |
| 48 | + </p> |
| 49 | + </div> |
| 50 | + </div> |
| 51 | + <div className={styles.card}> |
| 52 | + <ThemedImage |
| 53 | + sources={{ |
| 54 | + light: useBaseUrl('/img/homepage/libraries.png'), |
| 55 | + dark: useBaseUrl('/img/homepage/libraries-dark.png'), |
| 56 | + }} |
| 57 | + alt="Grid of icons representing libraries, SDKs, and native code" |
| 58 | + className={styles.cardImage} |
| 59 | + /> |
| 60 | + <div className={styles.cardContent}> |
| 61 | + <h4 className={styles.cardTitle}> |
| 62 | + Use any library, SDK, or native code |
| 63 | + </h4> |
| 64 | + <p className={styles.cardDescription}> |
| 65 | + Generate native changes or write your own native code. Use over 50 |
| 66 | + modules to create your app. |
| 67 | + </p> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + <div className={styles.card}> |
| 71 | + <ThemedImage |
| 72 | + sources={{ |
| 73 | + light: useBaseUrl('/img/homepage/tools.png'), |
| 74 | + dark: useBaseUrl('/img/homepage/tools-dark.png'), |
| 75 | + }} |
| 76 | + className={styles.cardImage} |
| 77 | + alt="List of developer tool toggles for debugging, performance, and more" |
| 78 | + /> |
| 79 | + <div className={styles.cardContent}> |
| 80 | + <h4 className={styles.cardTitle}>Developer tools</h4> |
| 81 | + <p className={styles.cardDescription}> |
| 82 | + Get started quickly with Expo Go, then continue with |
| 83 | + expo-dev-client: a module that adds Expo’s tools to apps that |
| 84 | + require native changes. |
| 85 | + </p> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + </Section> |
| 90 | + ); |
| 91 | +} |
| 92 | + |
| 93 | +export default Framework; |
0 commit comments