Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
this.state = {
lastUpdate: Date.now(),
loading: new Map(),
};
UIEvents.addListener(this.constructor.SET, this.setLoading);
UIEvents.addListener(this.constructor.RESET, this.resetLoading);
UIEvents.addListener(this.constructor.UNSET, this.unsetLoading);
}
constructor(props) {
super(props);
this.state = {
toasts: [],
};
UIEvents.addListener(this.constructor.ADD, this.addToast);
UIEvents.addListener(this.constructor.FLUSH, this.flushToasts);
}
constructor(props) {
super(props);
this.contentRef = React.createRef();
this.a11yCloseRef = React.createRef();
this.state = {
open: false,
};
UIEvents.addListener(OPEN, this.open);
UIEvents.addListener(CLOSE, this.close);
}
constructor(props) {
super(props);
this.state = {
toasts: [],
};
UIEvents.addListener(this.constructor.ADD, this.addToast);
UIEvents.addListener(this.constructor.FLUSH, this.flushToasts);
}
constructor(props) {
super(props);
this.state = {
lastUpdate: Date.now(),
loading: new Map(),
};
UIEvents.addListener(this.constructor.SET, this.setLoading);
UIEvents.addListener(this.constructor.RESET, this.resetLoading);
UIEvents.addListener(this.constructor.UNSET, this.unsetLoading);
}
componentDidMount() {
UIEvents.addListener(SHOW_TAB_BAR, this.show);
UIEvents.addListener(HIDE_TAB_BAR, this.hide);
updateHeightCSSProperty(this.props.isVisible);
}
constructor(props) {
super(props);
this.contentRef = React.createRef();
this.a11yCloseRef = React.createRef();
this.state = {
open: false,
};
UIEvents.addListener(OPEN, this.open);
UIEvents.addListener(CLOSE, this.close);
}
componentDidMount() {
UIEvents.addListener(UI_VISIBILITY_CHANGE, this.handleVisibilityChange);
}
componentDidMount() {
UIEvents.addListener(SHOW_TAB_BAR, this.show);
UIEvents.addListener(HIDE_TAB_BAR, this.hide);
updateHeightCSSProperty(this.props.isVisible);
}
constructor(props) {
super(props);
this.state = {
lastUpdate: Date.now(),
loading: new Map(),
};
UIEvents.addListener(this.constructor.SET, this.setLoading);
UIEvents.addListener(this.constructor.RESET, this.resetLoading);
UIEvents.addListener(this.constructor.UNSET, this.unsetLoading);
}