MCPcopy Create free account
hub / github.com/Snapchat/Valdi / renderButton

Method renderButton

apps/navigation_example/NavigationExample.tsx:117–128  ·  view source on GitHub ↗
(
    name: string,
    componentCtor: ComponentConstructor<IComponent>,
    navigationController: NavigationController,
  )

Source from the content-addressed store, hash-verified

115 ): void {
116 navigationController.present(componentCtor, {}, {});
117 }
118
119 private renderButton(
120 name: string,
121 componentCtor: ComponentConstructor<IComponent>,
122 navigationController: NavigationController,
123 ): void {
124 <PageButton
125 title={`Present ${name}`}
126 onTap={createReusableCallback(() => {
127 this.presentPage(name, componentCtor, navigationController);
128 })}
129 />;
130 }
131}

Callers 1

renderButtonsMethod · 0.95

Calls 2

presentPageMethod · 0.95
createReusableCallbackFunction · 0.90

Tested by

no test coverage detected