dynamic-form-react-native
v1.1.1
Published
Create your form with field dynamics
Downloads
8
Maintainers
Readme
react-native-dynamic-form
This package help you creating dynamic forms
Preview
Types fields
type typeFields =
| 'title'
| "text"
| "signature"
| "multiple_choice"
| "single_choice"
| "text_answer"
| "date"
| "date_time"
| "time";
common type
type FieldCommonType = {
label: string;
name: string;
onChange?: (newValue: string) => void;
initialValue?: string;
required?: boolean;
};
type TitleType = {
type: "title";
name: string;
labelIsHtml?: boolean;
label: string;
};
type SignatureFieldType = FieldCommonType & {
type: "signature";
multiple?: boolean;
disabledInput?: boolean;
initialValue?: SignatureValueType[];
optionWhoSign?: string[];
};
type OptionMultipleChoiceType = {
label: string;
styleLabel?: TextStyle;
style?: ViewStyle;
disabled?: boolean;
checked: boolean;
};
type MultipleChoiceType = FieldCommonType & {
type: "multiple_choice";
options: OptionMultipleChoiceType[];
};