MCPcopy Create free account
hub / github.com/callstack/react-theme-provider / Wrapper

Class Wrapper

src/__tests__/createTheming.test.js:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 const WithThemeComponent = withTheme(Component);
129
130 class Wrapper extends React.Component {
131 componentDidMount() {
132 expect(this.comp.foo()).toEqual('bar');
133 }
134
135 render() {
136 return (
137 <WithThemeComponent
138 ref={component => {
139 this.comp = component;
140 }}
141 />
142 );
143 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…