UNPKG

8.77 kBMarkdownView Raw
1<!-- Title -->
2
3<p align="center">
4 <a href="https://github.com/expo/examples">
5 <img alt="create-react-native-app" src="./.gh-assets/banner.svg">
6 <h1 align="center">Create React Native App</h1>
7 </a>
8</p>
9
10<!-- Header -->
11
12<p align="center">
13 <b>The fastest way to create universal React Native apps</b>
14 <br />
15
16 <p align="center">
17 <!-- iOS -->
18 <img alt="Supports Expo iOS" longdesc="Supports Expo iOS" src="https://img.shields.io/badge/iOS-000.svg?style=flat-square&logo=APPLE&labelColor=999999&logoColor=fff" />
19 <!-- Android -->
20 <img alt="Supports Expo Android" longdesc="Supports Expo Android" src="https://img.shields.io/badge/Android-000.svg?style=flat-square&logo=ANDROID&labelColor=A4C639&logoColor=fff" />
21 <!-- Web -->
22 <img alt="Supports Expo Web" longdesc="Supports Expo Web" src="https://img.shields.io/badge/web-000.svg?style=flat-square&logo=GOOGLE-CHROME&labelColor=4285F4&logoColor=fff" />
23 </p>
24 <p align="center">
25 <a href="https://packagephobia.now.sh/result?p=create-react-native-app">
26 <img alt="the best way to bootstrap a react native app" longdesc="the best way to create a react native app" src="https://flat.badgen.net/packagephobia/install/create-react-native-app" />
27 </a>
28 </p>
29
30</p>
31
32<!-- Body -->
33
34```sh
35npx create-react-native-app
36```
37
38Once you're up and running with Create React Native App, visit [this tutorial](https://reactnative.dev/docs/tutorial) for more information on building mobile apps with React.
39
40<p align="center">
41 <img align="center" alt="Product: demo" src="./.gh-assets/crna.gif" />
42</p>
43
44## Features
45
46- Native project ready to be built on to your device.
47- Support for unimodules and auto-linking.
48- OTA updates, and Gestures out of the box.
49- Full support for React Native web.
50- Plug-n-play custom templates.
51- Works with the Expo Client app.
52
53## Usage
54
55- `npx create-react-native-app` Create a new native React app.
56- `yarn ios` -- (`expo run:ios`) Build the iOS App (requires a MacOS computer).
57- `yarn android` -- (`expo run:android`) Build the Android App.
58- `yarn web` -- (`expo start:web`) Run the website in your browser.
59
60### Templates
61
62By default you create a [bare-workflow React](https://docs.expo.io/bare/exploring-bare-workflow/) project with support for iOS, Android, and web. You can opt to use an example project instead by selecting the "Templates from ..." option. Custom templates can be used with `--template <Example Name or GitHub URL>` option.
63
64- Use an [example](https://github.com/expo/examples): `npx create-react-native-app -t with-typescript`
65- Use a custom template: `npx create-react-native-app --template https://github.com/someone/my-react-starter` -- Only works with GitHub repos on the master branch.
66- All examples can be modified in the [expo/examples](https://github.com/expo/examples) repo.
67
68## Sections
69
70- [Usage with Expo Client App](#usage-with-expo-client-app)
71- [Support and Contact](#support-and-contact)
72- [FAQs](#faqs)
73- [Contributing](#contributing)
74
75## Usage with Expo Client App
76
77Expo Client enables you to work with all of the [Components and APIs](https://facebook.github.io/react-native/docs/getting-started) in `react-native`, as well as the [JavaScript APIs](https://docs.expo.io/versions/latest) that the are bundled with the Expo App.
78
79Expo Client supports running any project that doesn't have custom native modules added.
80
81- Download the "Expo Client" app from the Play Store or App Store.
82- Start your project with Expo
83 - Install the CLI `npm i -g expo-cli`
84 - Start the project `expo start`
85- Open the project:
86 - Sign in to expo and the project will appear in the app.
87 - Or point your phone's camera at the QR code in the terminal (press "c" to view it).
88
89## Support and Contact
90
91If you're having issues with Create React Native App, please make sure:
92
93- The issue is not covered in the [Expo Docs](https://docs.expo.io/versions/latest/)
94- There is not already an [open issue](https://github.com/expo/expo-cli/issues) for your particular problem
95
96If you've checked the documentation and currently open issues, please either [open a new GitHub issue](https://github.com/expo/create-react-native-app/issues/new) or ask a question on [Expo forums](https://forums.expo.io/c/help).
97
98## Contributing
99
100Please see [Contributing guide](https://github.com/expo/expo-cli/blob/master/CONTRIBUTING.md) in the Expo CLI monorepo for instructions on contributing to Expo CLI.
101
102### Attribution
103
104The examples feature was inspired by the `templates` system of [create-next-app](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) by the [Vercel](https://vercel.com/) team.
105
106## Related
107
108CRNA is focused on being the fastest way to bootstrap a React Native app without worrying about the native platforms or bundlers required for developing and shipping apps. Other tools provide both an init script (which is slower) and a suite of other tools that can be used for interacting with the project. CRNA is meant to be used with any of the following tools:
109
110- [Expo CLI](https://github.com/expo/expo-cli) by [Expo team](https://expo.io)
111- [Ignite CLI](https://github.com/infinitered/ignite) by [Infinite Red](https://infinite.red/)
112- [React Native Community CLI](https://github.com/react-native-community/cli) by members of [the React Native community](https://github.com/orgs/react-native-community/people)
113
114<!-- Footer -->
115
116## Contributors ✨
117
118<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
119
120[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)
121
122<!-- ALL-CONTRIBUTORS-BADGE:END -->
123
124Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
125
126<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
127<!-- prettier-ignore-start -->
128<!-- markdownlint-disable -->
129<table>
130 <tr>
131 <td align="center"><a href="https://twitter.com/baconbrix"><img src="https://avatars1.githubusercontent.com/u/9664363?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Evan Bacon</b></sub></a><br /><a href="https://github.com/expo/create-react-native-app/commits?author=EvanBacon" title="Code">💻</a> <a href="https://github.com/expo/create-react-native-app/commits?author=EvanBacon" title="Documentation">📖</a> <a href="#design-EvanBacon" title="Design">🎨</a> <a href="#maintenance-EvanBacon" title="Maintenance">🚧</a> <a href="https://github.com/expo/create-react-native-app/pulls?q=is%3Apr+reviewed-by%3AEvanBacon" title="Reviewed Pull Requests">👀</a></td>
132 <td align="center"><a href="https://expo.io"><img src="https://avatars2.githubusercontent.com/u/90494?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brent Vatne</b></sub></a><br /><a href="https://github.com/expo/create-react-native-app/commits?author=brentvatne" title="Code">💻</a> <a href="https://github.com/expo/create-react-native-app/commits?author=brentvatne" title="Documentation">📖</a> <a href="https://github.com/expo/create-react-native-app/pulls?q=is%3Apr+reviewed-by%3Abrentvatne" title="Reviewed Pull Requests">👀</a></td>
133 <td align="center"><a href="http://hamzah"><img src="https://avatars0.githubusercontent.com/u/26879042?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hamza Halilovic</b></sub></a><br /><a href="https://github.com/expo/create-react-native-app/commits?author=hamzahalilovic" title="Code">💻</a></td>
134 <td align="center"><a href="https://bycedric.com"><img src="https://avatars2.githubusercontent.com/u/1203991?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cedric van Putten</b></sub></a><br /><a href="https://github.com/expo/create-react-native-app/commits?author=byCedric" title="Code">💻</a></td>
135 <td align="center"><a href="https://twitter.com/VilleImmonen"><img src="https://avatars3.githubusercontent.com/u/497214?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ville Immonen</b></sub></a><br /><a href="https://github.com/expo/create-react-native-app/commits?author=fson" title="Code">💻</a> <a href="https://github.com/expo/create-react-native-app/pulls?q=is%3Apr+reviewed-by%3Afson" title="Reviewed Pull Requests">👀</a></td>
136 <td align="center"><a href="https://github.com/friederbluemle"><img src="https://avatars0.githubusercontent.com/u/743291?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Frieder Bluemle</b></sub></a><br /><a href="https://github.com/expo/create-react-native-app/commits?author=friederbluemle" title="Code">💻</a></td>
137 </tr>
138</table>
139
140<!-- markdownlint-restore -->
141<!-- prettier-ignore-end -->
142
143<!-- ALL-CONTRIBUTORS-LIST:END -->
144
145This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!