Skip to content

Commit 6756dfa

Browse files
authored
feat: add react-native-edge-to-edge (#115)
added `react-native-edge-to-edge` to uniform look on both platforms
1 parent 0817590 commit 6756dfa

File tree

10 files changed

+38
-3
lines changed

10 files changed

+38
-3
lines changed

packages/auth/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"react": "18.3.1",
2222
"react-native": "0.76.3",
2323
"react-native-bottom-tabs": "0.7.3",
24+
"react-native-edge-to-edge": "1.1.3",
2425
"react-native-paper": "5.12.5",
2526
"react-native-safe-area-context": "4.12.0",
2627
"react-native-screens": "4.2.0",

packages/booking/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"react-native": "0.76.3",
2424
"react-native-bottom-tabs": "0.7.3",
2525
"react-native-calendars": "1.1291.1",
26+
"react-native-edge-to-edge": "1.1.3",
2627
"react-native-paper": "5.12.5",
2728
"react-native-safe-area-context": "4.12.0",
2829
"react-native-screens": "4.2.0",

packages/dashboard/android/app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- Base application theme. -->
44
<style name="AppTheme"
5-
parent="Theme.Material3.DayNight.NoActionBar">
5+
parent="Theme.EdgeToEdge.Material3">
66
<!-- Customize your theme here. -->
77
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
88
</style>

packages/dashboard/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"react-native": "0.76.3",
2929
"react-native-bottom-tabs": "0.7.3",
3030
"react-native-calendars": "1.1291.1",
31+
"react-native-edge-to-edge": "1.1.3",
3132
"react-native-paper": "5.12.5",
3233
"react-native-safe-area-context": "4.12.0",
3334
"react-native-screens": "4.2.0",

packages/host/android/app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources>
22
<style name="AppTheme"
3-
parent="Theme.Material3.DayNight.NoActionBar">
3+
parent="Theme.EdgeToEdge.Material3">
44
<!-- Customize your theme here. -->
55
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
66
</style>

packages/host/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"react-native": "0.76.3",
2727
"react-native-bootsplash": "6.2.6",
2828
"react-native-bottom-tabs": "0.7.3",
29+
"react-native-edge-to-edge": "1.1.3",
2930
"react-native-paper": "5.12.5",
3031
"react-native-safe-area-context": "4.12.0",
3132
"react-native-screens": "4.2.0",

packages/host/src/components/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {Appbar} from 'react-native-paper';
44

55
const NavBar = ({navigation, back, route, options}: NativeStackHeaderProps) => {
66
return (
7-
<Appbar.Header elevated>
7+
<Appbar.Header elevated mode="center-aligned">
88
{back ? <Appbar.BackAction onPress={navigation.goBack} /> : null}
99
<Appbar.Content title={options.title ?? route.name} />
1010
</Appbar.Header>

packages/sdk/lib/dependencies.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@
4747
"name": "@module-federation/enhanced",
4848
"version": "0.7.1",
4949
"shared": false
50+
},
51+
"react-native-edge-to-edge": {
52+
"name": "react-native-edge-to-edge",
53+
"version": "1.1.3"
5054
}
5155
}

packages/shopping/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"react": "18.3.1",
2323
"react-native": "0.76.3",
2424
"react-native-bottom-tabs": "0.7.3",
25+
"react-native-edge-to-edge": "1.1.3",
2526
"react-native-paper": "5.12.5",
2627
"react-native-safe-area-context": "4.12.0",
2728
"react-native-screens": "4.2.0",

pnpm-lock.yaml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)