-
Notifications
You must be signed in to change notification settings - Fork 444
Expand file tree
/
Copy path_layout.tsx
More file actions
66 lines (60 loc) · 1.86 KB
/
Copy path_layout.tsx
File metadata and controls
66 lines (60 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import "./styles.css";
import FeatherIcon from "@expo/vector-icons/Feather";
import { BottomSheetModal, BottomSheetView } from "@gorhom/bottom-sheet";
import { QueryClientProvider } from "@tanstack/react-query";
import { Image } from "expo-image";
import { Stack } from "expo-router";
import { StatusBar } from "expo-status-bar";
// import { cssInterop } from "nativewind";
import {
GestureHandlerRootView,
RectButton,
} from "react-native-gesture-handler";
import { queryClient } from "~/lib/trpc";
export default function RootLayout() {
return (
<QueryClientProvider client={queryClient}>
<GestureHandlerRootView style={{ flex: 1 }}>
<Stack
screenOptions={{
headerStyle: {
backgroundColor: "#27272a",
},
contentStyle: {
backgroundColor: "#18181b",
},
headerTintColor: "#fff",
}}
></Stack>
</GestureHandlerRootView>
<StatusBar />
</QueryClientProvider>
);
}
/**
* Add CSS Styling to some 3rd party components
* @see https://www.nativewind.dev/v4/guides/third-party-components#handling-components-with-style-attribute-props
*/
// cssInterop(BottomSheetView, { className: "style" });
// cssInterop(BottomSheetModal, {
// className: "style",
// bgClassName: "backgroundStyle",
// });
// cssInterop(FeatherIcon, { className: "style" });
// cssInterop(Image, { className: "style" });
// cssInterop(RectButton, { className: "style" });
/**
* Add className type to props of some 3rd party components that don't have it
* @see https://www.nativewind.dev/v4/guides/third-party-components#typescript
*/
declare module "react-native-gesture-handler" {
interface RectButtonProps {
className?: string;
}
}
declare module "@gorhom/bottom-sheet" {
interface BottomSheetModalProps {
className?: string;
bgClassName?: string;
}
}