Skip to content

Commit c8c1e7f

Browse files
committed
Fix missing props (incorrect type)
1 parent 458c0de commit c8c1e7f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-edge-to-edge",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"license": "MIT",
55
"description": "Effortlessly enable edge-to-edge display in React Native",
66
"author": "Mathieu Acthernoene <[email protected]>",

src/expo.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import {
55
} from "@expo/config-plugins";
66

77
type Theme = "Material2" | "Material3";
8+
type Props = { android?: { parentTheme?: Theme } } | undefined;
89

9-
type Props = {
10-
android?: { parentTheme?: Theme };
11-
};
12-
13-
const withAndroidEdgeToEdgeTheme: ConfigPlugin<Props> = (config, props) => {
10+
const withAndroidEdgeToEdgeTheme: ConfigPlugin<Props> = (
11+
config,
12+
props = {},
13+
) => {
1414
const themes: Record<string, string> = {
1515
Material2: "Theme.EdgeToEdge.Material2",
1616
Material3: "Theme.EdgeToEdge.Material3",

0 commit comments

Comments
 (0)