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

Method createInstance

src/components/ColorDialog/index.ts:11–15  ·  view source on GitHub ↗
(newProps: ColorDialogProps, rootInstance: AppContainer, context: any, workInProgress: Fiber)

Source from the content-addressed store, hash-verified

9 return false;
10 }
11 createInstance(newProps: ColorDialogProps, rootInstance: AppContainer, context: any, workInProgress: Fiber): RNColorDialog {
12 const widget = new RNColorDialog();
13 widget.setProps(newProps, {});
14 return widget;
15 }
16 commitMount(instance: RNColorDialog, newProps: ColorDialogProps, internalInstanceHandle: any): void {
17 if (newProps.visible !== false && newProps.open !== false) {
18 instance.show();

Callers

nothing calls this directly

Calls 1

setPropsMethod · 0.95

Tested by

no test coverage detected