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