-
Notifications
You must be signed in to change notification settings - Fork 195
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-paper-dates@0.15.1 for the project I'm working on.
I use v2 of the react-native paper theme, and when using dark mode, the year text shows as dark text. Replacing the color value from undefined to either theme.colors.text or theme.colors.onSurface fixes the issue
| Dark mode without fix | Dark mode with fix |
|---|---|
![]() |
![]() |
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-paper-dates/src/Date/YearPicker.tsx b/node_modules/react-native-paper-dates/src/Date/YearPicker.tsx
index 3178557..a4a23d6 100644
--- a/node_modules/react-native-paper-dates/src/Date/YearPicker.tsx
+++ b/node_modules/react-native-paper-dates/src/Date/YearPicker.tsx
@@ -105,7 +105,7 @@ function YearPure({
: {
color: theme.isV3
? theme.colors.onSurfaceVariant
- : undefined,
+ : theme.colors.onSurface,
},
{ ...textFont },
]}This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

