bezenson / react-native-unicorn-modals

Custom modals with Imperative API πŸ¦„
https://inferusvv.github.io/react-native-unicorn-modals/
MIT License
34 stars 2 forks source link

goog color #9

Open YuGer26 opened 1 year ago

YuGer26 commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-unicorn-modals@0.5.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-unicorn-modals/src/themes/default-dark.ts b/node_modules/react-native-unicorn-modals/src/themes/default-dark.ts
index 4b8df4a..6a5f3c0 100644
--- a/node_modules/react-native-unicorn-modals/src/themes/default-dark.ts
+++ b/node_modules/react-native-unicorn-modals/src/themes/default-dark.ts
@@ -8,7 +8,7 @@ const defaultThemeDark: DefaultTheme = {
   },
   cardBackgroundColor: '#111',
   lineColor: '#222',
-  overlayBackgroundColor: 'rgba(0, 0, 0, 0.8)',
+  overlayBackgroundColor: '#0008',
   textColor: '#ddd',
   titleTextColor: '#fff',
 };
diff --git a/node_modules/react-native-unicorn-modals/src/themes/default-light.ts b/node_modules/react-native-unicorn-modals/src/themes/default-light.ts
index 4c5f21e..7aff425 100644
--- a/node_modules/react-native-unicorn-modals/src/themes/default-light.ts
+++ b/node_modules/react-native-unicorn-modals/src/themes/default-light.ts
@@ -8,7 +8,7 @@ const defaultThemeLight: DefaultTheme = {
   },
   cardBackgroundColor: '#eee',
   lineColor: '#ddd',
-  overlayBackgroundColor: 'rgba(0, 0, 0, 0.8)',
+  overlayBackgroundColor: '#0008',
   textColor: '#333',
   titleTextColor: '#000',
 };

This issue body was partially generated by patch-package.

bezenson commented 1 year ago

Hi! Could you give me more info about issue?