-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnativewind-env.d.ts
More file actions
38 lines (36 loc) · 945 Bytes
/
Copy pathnativewind-env.d.ts
File metadata and controls
38 lines (36 loc) · 945 Bytes
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
// Type augmentations that allow `className` on React Native components.
//
// Keysoft does NOT use NativeWind or Tailwind (the file name is historical). The
// prop is consumed only by react-native-web, which forwards `className` to the
// rendered DOM node so `src/utils/webScrollFix.ts` can style scroll containers
// with plain CSS. On Android and iOS the prop is inert.
import 'react-native';
declare module 'react-native' {
interface ViewProps {
className?: string;
}
interface TextProps {
className?: string;
}
interface ImageProps {
className?: string;
}
interface SwitchProps {
className?: string;
}
interface TouchableOpacityProps {
className?: string;
}
interface TextInputProps {
className?: string;
}
interface FlatListProps<_ItemT> {
className?: string;
}
interface ScrollViewProps {
className?: string;
}
interface PressableProps {
className?: string;
}
}