MCPcopy
hub / github.com/callstack/react-native-pager-view / createPage

Function createPage

example/src/utils.ts:22–33  ·  view source on GitHub ↗
(key: number)

Source from the content-addressed store, hash-verified

20};
21
22export const createPage = (key: number): CreatePage => {
23 return {
24 key: key,
25 style: {
26 flex: 1,
27 backgroundColor: BGCOLOR[key % BGCOLOR.length],
28 alignItems: 'center',
29 padding: 20,
30 },
31 imgSource: { uri: IMAGE_URIS[key % BGCOLOR.length] || '' },
32 };
33};

Callers 5

ScrollViewInsideExampleFunction · 0.90
constructorMethod · 0.90
PaperExampleClass · 0.90
getBasePagesFunction · 0.90
useNavigationPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…