From bbc9a87d97f134b87e722a035f3124441015647c Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Tue, 20 Jun 2023 12:57:05 -0700 Subject: [PATCH] [docs] Bring a couple sections up to date with the current state --- docs/pages/bare/installing-expo-modules.mdx | 2 -- docs/pages/guides/adopting-prebuild.mdx | 14 +++----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/docs/pages/bare/installing-expo-modules.mdx b/docs/pages/bare/installing-expo-modules.mdx index dc125af82cbb34..146a1f6388891a 100644 --- a/docs/pages/bare/installing-expo-modules.mdx +++ b/docs/pages/bare/installing-expo-modules.mdx @@ -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. diff --git a/docs/pages/guides/adopting-prebuild.mdx b/docs/pages/guides/adopting-prebuild.mdx index 649c3c6f5ae500..652e930e72c8bf 100644 --- a/docs/pages/guides/adopting-prebuild.mdx +++ b/docs/pages/guides/adopting-prebuild.mdx @@ -4,17 +4,9 @@ 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 */} - - - -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. @@ -22,7 +14,7 @@ This will create a new React Native project. The `expo` package contains the [`npx expo prebuild`](/more/expo-cli/#prebuild) command and indicates which [prebuild template](/workflow/prebuild#templates) to use: - + Ensure you install the version of `expo` that works for your currently installed version of `react-native`: [supported versions](version-support).