Skip to content

Commit 0b64753

Browse files
authored
fix(deps): Remove usage of deprecated SafeAreaView in the playground (#5241)
* fix(deps): Remove usage of deprecated SafeAreaView in the playground * Adds changelog
1 parent 459a438 commit 0b64753

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- Updates `sentry-xcode.sh` and the default settings for the `project.pbxproj` to fix the issue with escape patterns in Xcode that leaded to errors during "Bundle React Native code and images" stage ([#5221](https://github.com/getsentry/sentry-react-native/pull/5221))
1818
- Fixes .env file loading in Expo sourcemap uploads ([#5210](https://github.com/getsentry/sentry-react-native/pull/5210))
1919
- Fixes the issue with changing immutable metadata structure in the contructor of `ReactNativeClient`. This structure is getting re-created instead of being modified to ensure IP address is only inferred by Relay if `sendDefaultPii` is `true` ([#5202](https://github.com/getsentry/sentry-react-native/pull/5202))
20+
- Removes usage of deprecated `SafeAreaView` ([#5241](https://github.com/getsentry/sentry-react-native/pull/5241))
2021

2122
### Dependencies
2223

packages/core/src/js/playground/modal.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
Modal,
88
Platform,
99
Pressable,
10-
SafeAreaView,
1110
StyleSheet,
1211
Text,
1312
useColorScheme,
@@ -116,7 +115,7 @@ export const SentryPlayground = ({
116115
setShow(false);
117116
}}
118117
>
119-
<SafeAreaView style={styles.background}>
118+
<View style={styles.background}>
120119
<View style={styles.container}>
121120
<Text style={styles.welcomeText}>Welcome to Sentry Playground!</Text>
122121
<Animated.View
@@ -185,7 +184,7 @@ export const SentryPlayground = ({
185184
/>
186185
</View>
187186
</View>
188-
</SafeAreaView>
187+
</View>
189188
</Modal>
190189
);
191190
};

packages/core/test/playground/__snapshots__/modal.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`PlaygroundComponent matches the snapshot with no props 1`] = `
88
presentationStyle="formSheet"
99
visible={true}
1010
>
11-
<RCTSafeAreaView
11+
<View
1212
style={
1313
{
1414
"alignItems": "center",
@@ -765,7 +765,7 @@ exports[`PlaygroundComponent matches the snapshot with no props 1`] = `
765765
</View>
766766
</View>
767767
</View>
768-
</RCTSafeAreaView>
768+
</View>
769769
</Modal>
770770
`;
771771

@@ -777,7 +777,7 @@ exports[`PlaygroundComponent matches the snapshot with project id and organizati
777777
presentationStyle="formSheet"
778778
visible={true}
779779
>
780-
<RCTSafeAreaView
780+
<View
781781
style={
782782
{
783783
"alignItems": "center",
@@ -1534,6 +1534,6 @@ exports[`PlaygroundComponent matches the snapshot with project id and organizati
15341534
</View>
15351535
</View>
15361536
</View>
1537-
</RCTSafeAreaView>
1537+
</View>
15381538
</Modal>
15391539
`;

0 commit comments

Comments
 (0)