Skip to content

Commit e327ff3

Browse files
chore: specify RN peer dep version when installing Amplify UI RN package
1 parent 19b6501 commit e327ff3

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

src/fragments/lib-v1/in-app-messaging/integrate-your-application/react-native/install-dependencies.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ import reactnative1 from '/src/fragments/lib-v1/in-app-messaging/integrate-your-
1515
</Callout>
1616

1717
```bash
18-
npm install @aws-amplify/ui-react-native react-native-safe-area-context
18+
npm install @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5
1919
```

src/fragments/lib/in-app-messaging/integrate-your-application/react-native/install-dependencies.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ import reactnative1 from '/src/fragments/lib/in-app-messaging/integrate-your-app
2222
</Callout>
2323

2424
```bash
25-
npm install @aws-amplify/ui-react-native react-native-safe-area-context
25+
npm install @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5
2626
```

src/fragments/start/getting-started/reactnative/auth.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ The `@aws-amplify/ui-react-native` package includes React Native specific UI com
4545
<Block name="Expo CLI">
4646

4747
```bash
48-
npm install @aws-amplify/ui-react-native react-native-get-random-values react-native-url-polyfill
48+
npm install @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5 react-native-get-random-values react-native-url-polyfill
4949
```
5050

5151
</Block>
5252
<Block name="React Native CLI">
5353

5454
```bash
55-
npm install @aws-amplify/ui-react-native react-native-safe-area-context react-native-get-random-values react-native-url-polyfill
55+
npm install @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5 react-native-get-random-values react-native-url-polyfill
5656
```
5757

5858
You will also need to install the pod dependencies for iOS:

src/pages/[platform]/build-a-backend/add-aws-services/in-app-messaging/integrate-application/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Learn more about Amplify In-App Messaging UI and how to fully unlock its capabil
5656
</Callout>
5757

5858
```bash title="Terminal" showLineNumbers={false}
59-
npm add @aws-amplify/ui-react-native react-native-safe-area-context
59+
npm add @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5
6060
```
6161
</InlineFilter>
6262

src/pages/[platform]/build-a-backend/auth/set-up-auth/index.mdx

+3-5
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ npm add \
287287
aws-amplify \
288288
@react-native-community/netinfo \
289289
@react-native-async-storage/async-storage \
290-
react-native-safe-area-context \
290+
react-native-safe-area-context@^4.2.5 \
291291
react-native-get-random-values
292292
```
293293

@@ -316,7 +316,7 @@ Next, update the `App.tsx` file with the following to set up the authentication
316316

317317
```typescript
318318
import React from "react";
319-
import { Button, View, StyleSheet, SafeAreaView } from "react-native";
319+
import { Button, View, StyleSheet } from "react-native";
320320
import { Amplify } from "aws-amplify";
321321
import { Authenticator, useAuthenticator } from "@aws-amplify/ui-react-native";
322322
import outputs from "./amplify_outputs.json";
@@ -337,9 +337,7 @@ const App = () => {
337337
return (
338338
<Authenticator.Provider>
339339
<Authenticator>
340-
<SafeAreaView>
341-
<SignOutButton />
342-
</SafeAreaView>
340+
<SignOutButton />
343341
</Authenticator>
344342
</Authenticator.Provider>
345343
);

src/pages/[platform]/start/quickstart/index.mdx

+3-5
Original file line numberDiff line numberDiff line change
@@ -2723,7 +2723,7 @@ npm add \
27232723
aws-amplify \
27242724
@react-native-community/netinfo \
27252725
@react-native-async-storage/async-storage \
2726-
react-native-safe-area-context \
2726+
react-native-safe-area-context@^4.2.5 \
27272727
react-native-get-random-values \
27282728
react-native-url-polyfill
27292729
```
@@ -2738,7 +2738,7 @@ Next, update the `App.tsx` file with the following:
27382738
27392739
```typescript
27402740
import React from "react";
2741-
import { Button, View, StyleSheet, SafeAreaView } from "react-native";
2741+
import { Button, View, StyleSheet } from "react-native";
27422742

27432743
import { Amplify } from "aws-amplify";
27442744
import { Authenticator, useAuthenticator } from "@aws-amplify/ui-react-native";
@@ -2761,9 +2761,7 @@ const App = () => {
27612761
return (
27622762
<Authenticator.Provider>
27632763
<Authenticator>
2764-
<SafeAreaView>
2765-
<SignOutButton />
2766-
</SafeAreaView>
2764+
<SignOutButton />
27672765
</Authenticator>
27682766
</Authenticator.Provider>
27692767
);

src/pages/gen1/[platform]/start/getting-started/auth/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ The `@aws-amplify/ui-react-native` package includes React Native specific UI com
9393
<Block name="Expo CLI">
9494

9595
```bash
96-
expo install @aws-amplify/ui-react-native react-native-safe-area-context
96+
expo install @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5
9797
```
9898

9999
</Block>
100100
<Block name="React Native CLI">
101101

102102
```bash
103-
npm install @aws-amplify/ui-react-native react-native-safe-area-context
103+
npm install @aws-amplify/ui-react-native react-native-safe-area-context@^4.2.5
104104
```
105105

106106
You will also need to install the pod dependencies for iOS:

0 commit comments

Comments
 (0)