Skip to content

Commit

Permalink
[docs] Bring a couple sections up to date with the current state
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Jun 20, 2023
1 parent 10b1e67 commit bbc9a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docs/pages/bare/installing-expo-modules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import InstallSection from '~/components/plugins/InstallSection';
import { DiffBlock } from '~/ui/components/Snippet';
import { YesIcon, NoIcon } from '~/ui/components/DocIcons';

> Are you migrating from `react-native-unimodules`? If yes, please refer to [the Expo modules migration guide](https://expo.fyi/expo-modules-migration).
To use Expo modules in your app, you will need to install and configure the `expo` package.

The `expo` package has a small footprint; it includes only a minimal set of packages that are needed in nearly every app and the module and autolinking infrastructure that other Expo SDK packages are built with. Once the `expo` package is installed and configured in your project, you can use `npx expo install` to add any other Expo module from the SDK.
Expand Down
14 changes: 3 additions & 11 deletions docs/pages/guides/adopting-prebuild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@ title: Adopting Prebuild

import { Terminal } from '~/ui/components/Snippet';

There are [many advantages](/workflow/prebuild#pitch) of using [Expo Prebuild][prebuild] to generate your native projects. This guide will show you how to adopt Expo Prebuild in a project that was bootstrapped with `npx react-native init`. The amount of time it will take to convert your project depends on the amount of custom native changes that you have made to your iOS and Android native projects — on a brand new project, this may take a minute or two, and on a large project it could be much longer.
There are [many advantages](/workflow/prebuild#pitch) of using [Expo Prebuild][prebuild] to [continuously generate your native projects](/workflow/continuous-native-generation.mdx). This guide will show you how to adopt Expo Prebuild in a project that was bootstrapped with `npx react-native init`. The amount of time it will take to convert your project depends on the amount of custom native changes that you have made to your iOS and Android native projects — on a brand new project, this may take a minute or two, and on a large project it could be much longer.

> Adopting prebuild will automatically add support for developing modules with the [Expo native module API][expo-modules-core] by linking `expo-modules-core` natively. You can also use any command from [Expo CLI][cli] in your project.
## Bootstrap a new project

{/* NOTE: Update the version when we bump support */}

<Terminal cmd={['$ npx react-native init ProjectName --version 0.71.7']} />

This will create a new React Native project.
Adopting prebuild will automatically add support for developing modules with the [Expo native module API][expo-modules-core] by linking `expo-modules-core` natively. You can also use any command from [Expo CLI][cli] in your project.

> **warning** [Not all versions of `react-native` are explicitly supported][version-support]. Make sure to use a version of `react-native` that has a corresponding Expo SDK version.
## Install the `expo` package

The `expo` package contains the [`npx expo prebuild`](/more/expo-cli/#prebuild) command and indicates which [prebuild template](/workflow/prebuild#templates) to use:

<Terminal cmd={['$ yarn add expo']} />
<Terminal cmd={['$ npm install expo']} />

Ensure you install the version of `expo` that works for your currently installed version of `react-native`: [supported versions](version-support).

Expand Down

0 comments on commit bbc9a87

Please sign in to comment.