MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / createMockComponent

Function createMockComponent

test/mocks/react-native.ts:9–11  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

7
8const createMockComponent =
9 (name: string) =>
10 ({ children, ...props }: MockProps) =>
11 React.createElement(name, props, children);
12
13export const View = createMockComponent("View");
14export const Text = createMockComponent("Text");

Callers 1

react-native.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected