INNER CODE UNIT · TypeScript
ActionConfig
nodegui/react-nodegui · src/components/Action/index.ts:6
class ActionConfig extends ComponentConfig {
tagName = RNAction.tagName;
shouldSetTextContent(nextProps: ActionProps): boolean {
return false;
}
createInstance(
newProps: ActionProps,
rootInstance: AppContainer,
context: any,
workInProgress: Fiber
): RNAction {
const widget = new RNAction();
widget.setProps(newProps, {});
return widget;
}
commitMount(
instance: RNAction,
newProps: ActionProps,