blob: d5e084cdbf18aa4f77e181742f8680d92d052bee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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",
});
|