MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / createInstance

Method createInstance

src/components/Text/index.ts:10–19  ·  view source on GitHub ↗
(
    newProps: TextProps,
    rootInstance: AppContainer,
    context: any,
    workInProgress: Fiber
  )

Source from the content-addressed store, hash-verified

8 return true;
9 }
10 createInstance(
11 newProps: TextProps,
12 rootInstance: AppContainer,
13 context: any,
14 workInProgress: Fiber
15 ): RNText {
16 const widget = new RNText();
17 widget.setProps(newProps, {});
18 return widget;
19 }
20 commitMount(
21 instance: RNText,
22 newProps: TextProps,

Callers

nothing calls this directly

Calls 1

setPropsMethod · 0.95

Tested by

no test coverage detected