react-native-ui-lib
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a
92 lines (91 loc) • 2.45 kB
TypeScript
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { ViewProps } from '../view';
import { ButtonProps } from '../button';
export declare type StackAggregatorProps = ViewProps & {
/**
* The initial state of the stack
*/
collapsed: boolean;
/**
* Component Children
*/
children: JSX.Element | JSX.Element[];
/**
* The container style
*/
containerStyle?: StyleProp<ViewStyle>;
/**
* The content container style
*/
contentContainerStyle?: StyleProp<ViewStyle>;
/**
* The items border radius
*/
itemBorderRadius?: number;
/**
* Props passed to the 'show less' button
*/
buttonProps?: ButtonProps;
/**
* A callback for item press
*/
onItemPress?: (index: number) => void;
/**
* A callback for collapse state will change (value is future collapsed state)
*/
onCollapseWillChange?: (changed: boolean) => void;
/**
* A callback for collapse state change (value is collapsed state)
*/
onCollapseChanged?: (changed: boolean) => void;
/**
* A setting that disables pressability on cards
*/
disablePresses?: boolean;
};
declare const _default: React.ComponentClass<ViewProps & {
/**
* The initial state of the stack
*/
collapsed: boolean;
/**
* Component Children
*/
children: JSX.Element | JSX.Element[];
/**
* The container style
*/
containerStyle?: StyleProp<ViewStyle>;
/**
* The content container style
*/
contentContainerStyle?: StyleProp<ViewStyle>;
/**
* The items border radius
*/
itemBorderRadius?: number | undefined;
/**
* Props passed to the 'show less' button
*/
buttonProps?: ButtonProps | undefined;
/**
* A callback for item press
*/
onItemPress?: ((index: number) => void) | undefined;
/**
* A callback for collapse state will change (value is future collapsed state)
*/
onCollapseWillChange?: ((changed: boolean) => void) | undefined;
/**
* A callback for collapse state change (value is collapsed state)
*/
onCollapseChanged?: ((changed: boolean) => void) | undefined;
/**
* A setting that disables pressability on cards
*/
disablePresses?: boolean | undefined;
} & {
useCustomTheme?: boolean | undefined;
}, any>;
export default _default;