Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.foundation_ = new MDCTabBarFoundation(this.adapter);
this.foundation_.init();
const {
activeIndex,
indexInView,
} = this.props;
if (this.tabList_[activeIndex]) {
this.tabList_[activeIndex].activate({} /* previousIndicatorClientRect */);
}
this.foundation_.scrollIntoView(indexInView);
}