UNPKG

@applicaster/zapp-react-native-utils

Version:

Applicaster Zapp React Native utilities package

119 lines (111 loc) 3.35 kB
/* eslint-disable max-len */ export const defaultColor = "#ffffff"; export const entry = { type: { value: "video", }, id: "mf-2000", title: "Ford v Ferrari", summary: "American car designer Carroll Shelby and the British-born driver Ken Miles work together to battle corporate interference, the laws of physics, and their own personal demons to build a revolutionary race car for Ford Motor Company and take on the dominating race cars of Enzo Ferrari at the 24 Hours of Le Mans in France in 1966.", published: "2019", updated: "2005-04-06T20:25:05-08:00", media_group: [ { type: "image", media_item: [ { type: "image", key: "image_base", src: "https://wino-feed.s3.amazonaws.com/movieFeed/ford.jpg", }, ], }, ], content: { type: "video/mp4", src: "https://wino-feed.s3.amazonaws.com/movieFeed/Ford+v+Ferrari.mp4", }, background_color: "#123456", extensions: { background_color: "#123456", free: false, duration: 9000, section: "New Releases", play_next_feed_url: "https://s3.amazonaws.com/assets-production.applicaster.com/qa/zapp_qa/manual/TV/videofeed.xml", overlay_trigger_timestamp: 10, }, }; export const componentStyle = { horizontal_list_snap_switch: true, component_padding_top: "", component_gutter_horizontal: "20", component_margin_top: "", component_padding_right: "", horizontal_list_snap_to_alignment: "start", horizontal_list_cell_width: "400", cell_plugin_configuration_id: "267bd05a-08bd-4675-bdd3-9b73899773f0", horizontal_list_scaled_switch: false, background_color: "#123456", component_background_color: "rgba(255, 255, 255, 0)", background_color_1: "extensions.background_color", background_color_2: "invalidColorKey", background_color_3: "extensions.invalidColorKeyPath", component_padding_left: "", horizontal_list_next_offset: 20, component_margin_bottom: "", component_padding_bottom: "", horizontal_list_cells_per_view: 2, cell_styles: null, header: { visible: null, style: null, data: { target: null } }, }; export const EMPTY = { array: [], object: {}, string: "", nulls: null, undef: undefined, nullNum: Number(null), // this equals zero, we want to support zeroes nan: NaN, }; export const VAL = { array: [0, 0], aspect: "16x10", aspectColon: "16:10", aspectResult: 16 / 10, customKeyArray: ["extensions", "duration"], dataKeyArray: ["content", "src"], defaultAspectResult: 16 / 9, defaultWidth: 1920, defaultHeight: 216, object: { value: 0 }, string: "string", sentence: "string jumps over an array", boolT: true, boolF: false, zero: 0, capital: "String", capitalSentence: "String Jumps Over An Array", dataKey: "id", dataKeyPath: "content.src", customKey: "title", customKeyPath: "extensions.duration", lower: "string", other: "other", upper: "STRING", width: 400, height: 225, colorKey: "background_color", colorKeyRgba: "component_background_color", colorKeyPath: "background_color_1", invalidColorKey: "background_color_2", invalidColorKeyPath: "background_color_3", }; export const TRANSFORM = { default: "default", capitalize: "capitalize", lowercase: "lowercase", uppercase: "uppercase", }; export const FALLBACK = "fallbackValue";