Form
AutoExpandingTextInput
(component)
./src/components/form/autoExpandingTextInput.js
Textarea who expand every time a new line is added
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
onChangeText | func |
|||
style | custom |
|||
validationStatus | number |
0 |
DateInput
(component)
./src/components/form/date/dateInput.android.js
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
maxDate | instanceOfDate |
|||
minDate | instanceOfDate |
|||
mode | enum('datetime','date','time') |
‘datetime’ | ||
onChange | func |
|||
readOnly | bool |
false | ||
type | enum('calendar','spinner','default') |
‘default’ | ||
validationStatus | number |
|||
value | instanceOfDate |
FormView
(component)
./src/components/form/formView.js
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
dataSource | array |
|||
style | custom |
MultipleChoiceInput
(component)
./src/components/form/choice/index.js
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
columns | number |
1 | ||
modal | bool |
|||
multiple | bool |
false | ||
onChange | func |
|||
readOnly | bool |
false | ||
selected | array |
[] | ||
validationStatus | number |
0 | ||
values | array |
[] |
NumberInput
(component)
./src/components/form/number.js
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
integer | bool |
false | ||
max | number |
|||
min | number |
|||
onChange | func |
|||
onSubmitEditing | func |
|||
placeholder | string |
|||
precision | number |
|||
rangeMax | number |
|||
rangeMin | number |
|||
readOnly | bool |
false | ||
returnKeyType | string |
|||
secureTextEntry | bool |
|||
talking | bool |
|||
validationStatus | number |
|||
value | string |
SwitchWithThreeState
(component)
./src/components/form/switch.js
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
onChange | func |
|||
readOnly | bool |
false | ||
validationStatus | number |
0 | ||
value | bool |
WithLabel
(component)
./src/components/form/withLabel.js
Props
Name | Type | Is required | Description | Default value |
---|---|---|---|---|
children | node |
|||
inline | bool |
false | ||
label | string |
|||
labelSize | number |
6 |