UNPKG

1.66 kBJavaScriptView Raw
1import { COMPONENT_TYPES, FORM_TYPES } from "../core/component-types";
2export const SEED_DATA = {
3 name: "Image Background",
4 tag: "ImageBackground",
5 doc_link: "https://docs.expo.io/versions/latest/react-native/imagebackground/",
6 code_link: "https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js",
7 description: "A very simple drop-in replacement for Image that allows you to use an Image as a background.",
8 category: COMPONENT_TYPES.media,
9 supports_list_render: false,
10 layout: {
11 width: "100%",
12 height: "100%"
13 },
14 props: {
15 source: {
16 label: "Image Source",
17 description: "The source of the image",
18 editable: true,
19 required: true,
20 type: FORM_TYPES.localImage,
21 value: null
22 },
23 resizeMode: {
24 label: "Resize Mode",
25 description: "Determines how to resize the image when the frame doesn't match the raw image dimensions",
26 editable: true,
27 required: false,
28 value: "cover",
29 type: FORM_TYPES.flatArray,
30 options: ["cover", "contain", "stretch", "repeat", "center"]
31 },
32 backfaceVisibility: {
33 label: "Backface Visibility",
34 description: "When animating a card, show the back face of it",
35 editable: false,
36 required: false,
37 value: null,
38 type: FORM_TYPES.flatArray,
39 options: ["visible", "hidden"]
40 },
41 backgroundColor: {
42 label: "Background Color",
43 description: "If no image is chosen render a colored background.",
44 editable: true,
45 required: false,
46 value: null,
47 type: FORM_TYPES.color
48 }
49 }
50};
51//# sourceMappingURL=ImageBackground.js.map
\No newline at end of file