UNPKG

@crossed/ui

Version:

A universal & performant styling library for React Native, Next.js & React

42 lines 1.64 kB
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { LayoutProps } from './utils/Layout'; import { PropsWithChildren } from 'react'; import Animated, { AnimatedScrollViewProps } from 'react-native-reanimated'; type Base = { /** * Set to true for sticky header */ stickyHeader?: boolean; /** * Set to true for sticky footer */ stickyFooter?: boolean; }; export type ScrollViewProps = PropsWithChildren<Omit<AnimatedScrollViewProps, 'data' | 'renderItem' | 'ListHeaderComponent' | 'ListFooterComponent' | 'stickyHeaderIndices'> & Base & { containerProps?: Omit<LayoutProps, 'footer' | 'showFooter' | 'paddingRight' | 'stickyFooter'>; }>; export declare const ScrollView: import("react").ForwardRefExoticComponent<Omit<AnimatedScrollViewProps, "data" | "stickyHeaderIndices" | "renderItem" | "ListFooterComponent" | "ListHeaderComponent"> & Base & { containerProps?: Omit<LayoutProps, "footer" | "showFooter" | "paddingRight" | "stickyFooter">; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<Animated.ScrollView>> & { Title: { ({ children }: PropsWithChildren): import("react").ReactNode; displayName: string; }; Footer: { ({ children }: PropsWithChildren): import("react").ReactNode; displayName: string; }; Body: { ({ children }: PropsWithChildren): import("react").ReactNode; displayName: string; }; }; export {}; //# sourceMappingURL=ScrollView.d.ts.map