UNPKG

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

44 lines (43 loc) 1.26 kB
import React, { PropsWithChildren } from 'react'; import { ButtonProps } from '../button'; export interface FloatingButtonProps { /** * Whether the button is visible */ visible?: boolean; /** * Button element (all Button's component's props) */ button?: PropsWithChildren<ButtonProps>; /** * Secondary button element (all Button's component's props) */ secondaryButton?: PropsWithChildren<ButtonProps>; /** * The bottom margin of the button, or secondary button if passed */ bottomMargin?: number; /** * The duration of the button's animations (show/hide) */ duration?: number; /** * Whether to show/hide the button without animation */ withoutAnimation?: boolean; /** * Whether to show background overlay */ hideBackgroundOverlay?: boolean; /** * Used as testing identifier * <TestID> - the floatingButton container * <TestID>.button - the floatingButton main button * <TestID>.secondaryButton - the floatingButton secondaryButton */ testID?: string; } declare const _default: React.ComponentClass<FloatingButtonProps & { useCustomTheme?: boolean | undefined; }, any>; export default _default;