diff --git a/lib/BackgroundRippleAnimation.js b/lib/BackgroundRippleAnimation.js index b165847..1583db2 100644 --- a/lib/BackgroundRippleAnimation.js +++ b/lib/BackgroundRippleAnimation.js @@ -18,7 +18,7 @@ export default class BackgroundRippleAnimation extends React.PureComponent { animation: new Animated.Value(0) } - componentWillMount() { + UNSAFE_componentWillMount() { this.radius = this.calcRadius() } diff --git a/lib/BottomNavigation.js b/lib/BottomNavigation.js index 50d3e14..08ac9cd 100644 --- a/lib/BottomNavigation.js +++ b/lib/BottomNavigation.js @@ -98,7 +98,7 @@ export default class BottomNavigation extends React.Component { Dimensions.addEventListener('change', this.handleDimensionChange) } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (Platform.OS !== 'android') return if (nextProps.viewportHeight !== this.props.viewportHeight) { diff --git a/lib/FullTab.js b/lib/FullTab.js index a03f2e3..0dd91af 100644 --- a/lib/FullTab.js +++ b/lib/FullTab.js @@ -121,7 +121,7 @@ export default class FullTab extends React.Component { } } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (!this.props.isActive && nextProps.isActive) { this.animateIn() } diff --git a/lib/IconTab.js b/lib/IconTab.js index 87d100c..7ce8f42 100644 --- a/lib/IconTab.js +++ b/lib/IconTab.js @@ -86,7 +86,7 @@ export default class IconTab extends React.Component { } } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (!this.props.isActive && nextProps.isActive) { this.animateIn() } diff --git a/lib/PressRippleAnimation.js b/lib/PressRippleAnimation.js index b9cdbe6..a498e8b 100644 --- a/lib/PressRippleAnimation.js +++ b/lib/PressRippleAnimation.js @@ -32,7 +32,7 @@ export default class PressRippleAnimation extends React.PureComponent { this.runInAnimation() } - componentWillReceiveProps({ animateOut }) { + UNSAFE_componentWillReceiveProps({ animateOut }) { if (animateOut && !this.props.animateOut) { this.runOutAnimation() } diff --git a/lib/TabList.js b/lib/TabList.js index f383483..a706aec 100644 --- a/lib/TabList.js +++ b/lib/TabList.js @@ -57,7 +57,7 @@ export default class TabList extends React.PureComponent { } } - componentWillMount() { + UNSAFE_componentWillMount() { // Initially set background color this.props.setBackgroundColor(this.getActiveTab().barColor) @@ -67,7 +67,7 @@ export default class TabList extends React.PureComponent { } } - componentWillReceiveProps({ activeTab: nextActiveTab }) { + UNSAFE_componentWillReceiveProps({ activeTab: nextActiveTab }) { if (this.isControlled && nextActiveTab !== this.props.activeTab) { const { barColor } = this.getTab(nextActiveTab) this.setActiveTab(nextActiveTab)