MCPcopy Index your code
hub / github.com/callstack/react-theme-provider / PropsChecker

Function PropsChecker

src/__tests__/createTheming.test.js:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47 it('provides theme with hook', () => {
48 const PropsChecker = props => {
49 const theme = useTheme(props.theme);
50
51 expect(typeof theme).toBe('object');
52 expect(theme).toEqual(darkTheme);
53 return null;
54 };
55
56 ReactDOM.render(
57 <ThemeProvider>

Callers

nothing calls this directly

Calls 1

useThemeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…