UNPKG

@react-form-fields/native-base

Version:

Native Base Form Fields

14 lines (13 loc) 577 B
import { PropsResolver } from '@react-form-fields/core/interfaces/props'; import { NativeBase } from 'native-base'; import * as React from 'react'; import { IFlowIndexProp } from './hooks/useFieldFlow'; export interface IFieldSwitchProps extends PropsResolver<NativeBase.Switch, 'mask'>, IFlowIndexProp { label?: React.ReactNode; value?: boolean; onChange: (checked: boolean) => void; helperText?: string; marginBottom?: boolean; } declare const FieldSwitch: React.MemoExoticComponent<(props: IFieldSwitchProps) => JSX.Element>; export default FieldSwitch;