Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(react-native): Add callouts for dropped Expo Go support #7160

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fragments/lib/troubleshooting/common/upgrading.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Per the [Expo docs](https://docs.expo.dev/workflow/customizing/):

> The Expo Go app is a great tool to get started. It exists to help developers quickly get projects off the ground, experiment with ideas (such as on Snack), and share their work with minimal friction. Expo Go makes this possible by including a feature-rich native runtime made up of every module in the Expo SDK, so all you need to do to use a module is install the package and reload your app. <br/><br/> The tradeoff is that Expo Go does not allow you to add custom native code. You can only use native modules built into the Expo SDK. Many great libraries are available outside of the Expo SDK, and you may even want to build your native library. You can leverage these libraries with development builds or using prebuild to generate native projects, or both. You can also continue using EAS Build to release your app as no changes are required.

A key part of Amplify's React Native strategy going forward is to reduce our reliance on third-party native modules. While third-party native modules are a mainstay of the React Native ecosystem, we believe the flexibility of building more native modules tailored to the specific needs of our customers will allow us to most quickly deliver value to them in the long run. As a result of now requiring native modules not available through the Expo SDK, Expo Go is not supported in v6 but you should be able to use Expo.
A key part of Amplify's React Native strategy going forward is to reduce our reliance on third-party native modules. While third-party native modules are a mainstay of the React Native ecosystem, we believe the flexibility of building more native modules tailored to the specific needs of our customers will allow us to most quickly deliver value to them in the long run. As a result of now requiring native modules not available through the Expo SDK, Expo Go is not supported in v6 but you should still be able to use Expo.

</InlineFilter>

Expand Down
8 changes: 7 additions & 1 deletion src/fragments/start/getting-started/reactnative/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ To get started, initialize a new React Native project.
<BlockSwitcher>
<Block name="Expo CLI">

<Callout>

Amplify now requires native modules not available through the Expo SDK. As a result, Expo Go is no longer supported but you should still be able to use Expo. [Learn more about dropping support for Expo Go in Amplify v6](/react-native/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/#dropping-support-for-expo-go).
Samaritan1011001 marked this conversation as resolved.
Show resolved Hide resolved

</Callout>

Create a new app with the following command:

```sh
Expand All @@ -20,7 +26,7 @@ import rnVersionCallout from '/src/fragments/common/react-native-version-deploym
Install the necessary dependencies by running the following command:

```sh
npm install aws-amplify @aws-amplify/react-native @aws-amplify/rtn-web-browser @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
npm install aws-amplify @aws-amplify/react-native @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only needed with signInWithRedirect. This is the only place in the getting started that has this and we do call out the need for it on the relevant page

```

Start the app with the following command:
Expand Down
6 changes: 6 additions & 0 deletions src/pages/[platform]/start/getting-started/setup/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ To get started, initialize a new React Native project.
<BlockSwitcher>
<Block name="Expo CLI">

<Callout>

Amplify now requires native modules not available through the Expo SDK. As a result, Expo Go is no longer supported but you should still be able to use Expo. [Learn more about dropping support for Expo Go in Amplify v6](/react-native/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/#dropping-support-for-expo-go).
Samaritan1011001 marked this conversation as resolved.
Show resolved Hide resolved

</Callout>

Create a new app with the following command:

```sh
Expand Down
Loading