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
63 lines (62 loc) • 1.52 kB
TypeScript
import React from 'react';
import { StyleProp, TextStyle, ImageSourcePropType } from 'react-native';
import { ViewProps } from '../../components/view';
import { ButtonProps } from '../../components/button';
export interface ModalTopBarProps {
/**
* title to display in the center of the top bar
*/
title?: string;
/**
* title custom style
*/
titleStyle?: StyleProp<TextStyle>;
/**
* done action props (Button props)
*/
doneButtonProps?: Omit<ButtonProps, 'onPress'>;
/**
* done action label
*/
doneLabel?: string;
/**
* done action icon
*/
doneIcon?: ImageSourcePropType;
/**
* done action callback
*/
onDone?: (props?: any) => void;
/**
* cancel action props (Button props)
*/
cancelButtonProps?: Omit<ButtonProps, 'onPress'>;
/**
* cancel action label
*/
cancelLabel?: string;
/**
* cancel action icon
*/
cancelIcon?: ImageSourcePropType;
/**
* cancel action callback
*/
onCancel?: (props?: any) => void;
/**
* whether to include status bar or not (height claculations)
*/
includeStatusBar?: boolean;
/**
* style for the TopBar container
*/
containerStyle?: ViewProps['style'];
/**
* Whether or not to handle SafeArea
*/
useSafeArea?: boolean;
}
declare const _default: React.ComponentClass<ModalTopBarProps & {
useCustomTheme?: boolean | undefined;
}, any>;
export default _default;