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

replace expo init with npx create-expo-app #5118

Merged
merged 1 commit into from
Mar 1, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To enable SQLite with DataStore for enhanced local database performance, follow
npx react-native@0.68.2 init AmplifyDataStoreRN --version 0.68.2
cd AmplifyDataStoreRN
npx amplify-app@latest
npm install aws-amplify @aws-amplify/datastore-storage-adapter react-native-sqlite-storage @react-native-community/netinfo @react-native-async-storage/async-storage
npm install aws-amplify @aws-amplify/datastore-storage-adapter react-native-sqlite-storage @react-native-community/netinfo @react-native-async-storage/async-storage
npx pod-install
```

Expand All @@ -52,7 +52,7 @@ DataStore.configure({
Start with the [Expo CLI](https://docs.expo.dev/):

```bash
expo init AmplifyDataStoreExpo
npx create-expo-app AmplifyDataStoreExpo
cd AmplifyDataStoreExpo
npx amplify-app@latest
expo install aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage
Expand All @@ -65,10 +65,10 @@ Expo built apps can now use SQLite with DataStore. SQLite offers considerable pe
To enable SQLite with DataStore for enhanced local database performance, follow the steps below:

```sh
expo init AmplifyDataStoreExpo
npx create-expo-app AmplifyDataStoreExpo
cd AmplifyDataStoreExpo
npx amplify-app@latest
expo install aws-amplify @aws-amplify/datastore-storage-adapter expo-sqlite expo-file-system @react-native-community/netinfo @react-native-async-storage/async-storage
expo install aws-amplify @aws-amplify/datastore-storage-adapter expo-sqlite expo-file-system @react-native-community/netinfo @react-native-async-storage/async-storage
```

Then configure the SQLite storage adapter with DataStore in your app:
Expand Down