Skip to content

Commit 5242789

Browse files
committed
feat: Update application themes to use edge-to-edge layout and add edge-to-edge dependency
1 parent 64c4bfe commit 5242789

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<resources>
22

33
<!-- Base light application theme. -->
4-
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
4+
<style name="AppTheme" parent="Theme.EdgeToEdge.Light">
55
<!-- Customize your theme here. -->
66
<item name="android:windowDisablePreview">true</item>
77
<item name="android:windowIsTranslucent">true</item>
88
<item name="android:editTextStyle">@style/MendixEditText</item>
99
</style>
1010
<!-- Base dark application theme. -->
11-
<style name="AppTheme_Dark" parent="Theme.AppCompat.DayNight.NoActionBar">
11+
<style name="AppTheme_Dark" parent="Theme.EdgeToEdge">
1212
<!-- Customize your theme here. -->
1313
<item name="android:windowDisablePreview">true</item>
1414
<item name="android:windowIsTranslucent">true</item>

android/gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ android.suppressUnsupportedCompileSdk=33
2626
newArchEnabled=false
2727
hermesEnabled=true
2828
mendixnative.cookieEncryption=false
29-
VisionCamera_enableCodeScanner=true
29+
VisionCamera_enableCodeScanner=true
30+
31+
# Enable edge-to-edge display (React Native 0.81+)
32+
edgeToEdgeEnabled=true

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
"@react-native-community/cli-platform-ios": "16.0.2",
2020
"@react-native-community/datetimepicker": "8.2.0",
2121
"@react-native-picker/picker": "2.11.0",
22-
"react-native-device-info": "14.0.4",
2322
"@react-navigation/native": "7.0.14",
2423
"react-native": "0.77.3",
2524
"react-native-blob-util": "0.21.2",
25+
"react-native-device-info": "14.0.4",
26+
"react-native-edge-to-edge": "^1.7.0",
2627
"react-native-gesture-handler": "2.23.1",
2728
"react-native-image-picker": "7.2.3",
2829
"react-native-localize": "3.2.1",

0 commit comments

Comments
 (0)