UNPKG

react-native-form-model

Version:

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

24 lines (23 loc) 789 B
import React from 'react'; import { ViewProps } from 'react-native'; export interface FormIconProps extends ViewProps { size: number; color?: string; } export declare type FormIconComponent = React.FC<FormIconProps>; export interface FormAssetsConfig { ClearIcon?: FormIconComponent; CheckmarkIcon?: FormIconComponent; LeftArrowIcon?: FormIconComponent; RightArrowIcon?: FormIconComponent; } export default class FormAssets implements FormAssetsConfig { ClearIcon?: FormIconComponent; CheckmarkIcon?: FormIconComponent; LeftArrowIcon?: FormIconComponent; RightArrowIcon?: FormIconComponent; static _shared?: FormAssets; constructor(config: FormAssetsConfig); static get shared(): FormAssets; static set shared(shared: FormAssets); }