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

Method createInstance

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

Source from the content-addressed store, hash-verified

17 return true;
18 }
19 createInstance(newProps: DialogProps, rootInstance: AppContainer, context: any, workInProgress: Fiber): RNDialog {
20 const widget = new RNDialog();
21 widget.setProps(newProps, {});
22 return widget;
23 }
24 commitMount(instance: RNDialog, newProps: DialogProps, internalInstanceHandle: any): void {
25 if (newProps.visible !== false && newProps.open !== false) {
26 instance.show();

Callers

nothing calls this directly

Calls 1

setPropsMethod · 0.95

Tested by

no test coverage detected