UNPKG

react-native-css-interop

Version:

Provides a layer of interoperability between React Native and CSS stylesheets allowing to use CSS as a styling language for both React Native and React Native Web. The interoperability goes beyond basic styles allows the use of modern features such as CSS

70 lines (67 loc) 1.65 kB
import { ScrollViewProps, ScrollViewPropsAndroid, ScrollViewPropsIOS, Touchable, VirtualizedListProps, } from "react-native"; declare module "@react-native/virtualized-lists" { export interface VirtualizedListWithoutRenderItemProps<ItemT> extends ScrollViewProps { ListFooterComponentClassName?: string; ListHeaderComponentClassName?: string; } } declare module "react-native" { interface ScrollViewProps extends ViewProps, ScrollViewPropsIOS, ScrollViewPropsAndroid, Touchable { contentContainerClassName?: string; indicatorClassName?: string; } interface FlatListProps<ItemT> extends VirtualizedListProps<ItemT> { columnWrapperClassName?: string; } interface ImageBackgroundProps extends ImagePropsBase { imageClassName?: string; } interface ImagePropsBase { className?: string; cssInterop?: boolean; } interface ViewProps { className?: string; cssInterop?: boolean; } interface TextInputProps { placeholderClassName?: string; } interface TextProps { className?: string; cssInterop?: boolean; } interface SwitchProps { className?: string; cssInterop?: boolean; } interface InputAccessoryViewProps { className?: string; cssInterop?: boolean; } interface TouchableWithoutFeedbackProps { className?: string; cssInterop?: boolean; } interface StatusBarProps { className?: string; cssInterop?: boolean; } interface KeyboardAvoidingViewProps extends ViewProps { contentContainerClassName?: string; } interface ModalBaseProps { presentationClassName?: string; } }