UNPKG

react-native-form-model

Version:

An easily testable and opinionated React Native form model builder written in pure JavaScript.

23 lines (22 loc) 804 B
import React from 'react'; import { StyleProp, TextProps, TextStyle, TouchableHighlightProps, ViewProps, ViewStyle } from 'react-native'; export interface ChildProps extends ViewProps { color?: string; } export interface TitleProps extends TextProps { color?: string; } export interface ButtonProps extends TouchableHighlightProps { title: string | ((props: TitleProps) => React.ReactNode); icon?: null | false | ((props: ChildProps) => React.ReactNode); mode?: 'contained' | 'outline' | 'text'; compact?: boolean; loading?: boolean; contentContainerStyle?: StyleProp<ViewStyle>; textStyle?: StyleProp<TextStyle>; numberOfLines?: number; color?: string; activityIndicatorSize?: number; } declare const Button: React.FC<ButtonProps>; export default Button;