Skip to content

Commit 254bbb3

Browse files
committed
fix(data): update React Native installation instructions for DataStore Getting Started docs (#5258)
1 parent 88915b1 commit 254bbb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fragments/lib/datastore/react-native/getting-started/30_platformIntegration.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Start with the [React Native CLI](https://reactnative.dev/docs/getting-started):
1212
npx [email protected] init AmplifyDataStoreRN --version 0.68.2
1313
cd AmplifyDataStoreRN
1414
npx amplify-app@latest
15-
npm install aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage core-js
15+
npm install aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage core-js
1616
```
1717

1818
You will also need to install the pod dependencies for iOS:
@@ -31,7 +31,7 @@ To enable SQLite with DataStore for enhanced local database performance, follow
3131
npx [email protected] init AmplifyDataStoreRN --version 0.68.2
3232
cd AmplifyDataStoreRN
3333
npx amplify-app@latest
34-
npm install aws-amplify @aws-amplify/datastore-storage-adapter react-native-sqlite-storage @react-native-community/netinfo @react-native-async-storage/async-storage core-js
34+
npm install aws-amplify amazon-cognito-identity-js @aws-amplify/datastore-storage-adapter react-native-sqlite-storage @react-native-community/netinfo @react-native-async-storage/async-storage core-js
3535
npx pod-install
3636
```
3737

@@ -61,7 +61,7 @@ Start with the [Expo CLI](https://docs.expo.dev/):
6161
npx create-expo-app AmplifyDataStoreExpo
6262
cd AmplifyDataStoreExpo
6363
npx amplify-app@latest
64-
expo install aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage
64+
expo install aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
6565
```
6666

6767
**Use SQLite for enhanced performance (optional)**

0 commit comments

Comments
 (0)