1 | import { COMPONENT_TYPES, FORM_TYPES } from "../core/component-types";
|
2 | export const SEED_DATA = {
|
3 | name: "Keyboard Avoiding View",
|
4 | tag: "KeyboardAvoidingView",
|
5 | description: "View that moves out of the way of the virtual keyboard. ",
|
6 | category: COMPONENT_TYPES.layout,
|
7 | supports_list_render: false,
|
8 | layout: {},
|
9 | props: {
|
10 | enabled: {
|
11 | label: "Enable",
|
12 | description: "Enable the keyboard avoiding view",
|
13 | editable: true,
|
14 | required: true,
|
15 | value: true,
|
16 | type: FORM_TYPES.boolean
|
17 | },
|
18 | behavior: {
|
19 | label: "Resizing Behavior",
|
20 | description: "The behavior for how the keyboard resizing interacts with the rest of the screen. (Default: padding).",
|
21 | editable: true,
|
22 | required: true,
|
23 | value: "padding",
|
24 | options: ["padding", "position", "height"],
|
25 | type: FORM_TYPES.flatArray
|
26 | },
|
27 | keyboardVerticalOffset: {
|
28 | label: "Keyboard Vertical Offset",
|
29 | description: "The distance between the bottom of the view and the keyboard",
|
30 | editable: true,
|
31 | required: false,
|
32 | value: 0,
|
33 | type: FORM_TYPES.number
|
34 | }
|
35 | }
|
36 | };
|
37 |
|
\ | No newline at end of file |