From c8c1e7f6c4914231cf6a15c24490f2213c684afb Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Sun, 10 Nov 2024 09:47:19 +0100 Subject: [PATCH] Fix missing props (incorrect type) --- package.json | 2 +- src/expo.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 55452dd..c8b63e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-edge-to-edge", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "description": "Effortlessly enable edge-to-edge display in React Native", "author": "Mathieu Acthernoene ", diff --git a/src/expo.ts b/src/expo.ts index c04fa4e..5f72fc9 100644 --- a/src/expo.ts +++ b/src/expo.ts @@ -5,12 +5,12 @@ import { } from "@expo/config-plugins"; type Theme = "Material2" | "Material3"; +type Props = { android?: { parentTheme?: Theme } } | undefined; -type Props = { - android?: { parentTheme?: Theme }; -}; - -const withAndroidEdgeToEdgeTheme: ConfigPlugin = (config, props) => { +const withAndroidEdgeToEdgeTheme: ConfigPlugin = ( + config, + props = {}, +) => { const themes: Record = { Material2: "Theme.EdgeToEdge.Material2", Material3: "Theme.EdgeToEdge.Material3",