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