From c46482cdaaf883971736488750513663dd023076 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 17 Apr 2024 17:56:21 +0100
Subject: mobile: Add dark mode support

---
 apps/mobile/components/TailwindResolver.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 apps/mobile/components/TailwindResolver.tsx

(limited to 'apps/mobile/components/TailwindResolver.tsx')

diff --git a/apps/mobile/components/TailwindResolver.tsx b/apps/mobile/components/TailwindResolver.tsx
new file mode 100644
index 00000000..d5e084cd
--- /dev/null
+++ b/apps/mobile/components/TailwindResolver.tsx
@@ -0,0 +1,16 @@
+import { TextStyle, ViewStyle } from "react-native";
+import { cssInterop } from "nativewind";
+
+function TailwindResolverImpl({
+  comp,
+  style,
+}: {
+  comp: (style?: ViewStyle & TextStyle) => React.ReactNode;
+  style?: ViewStyle & TextStyle;
+}) {
+  return comp(style);
+}
+
+export const TailwindResolver = cssInterop(TailwindResolverImpl, {
+  className: "style",
+});
-- 
cgit v1.2.3-70-g09d2

