Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.
Please update the following components: CalendarPicker, Swiper
Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks
Warning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidUpdate instead. As a temporary workaround, you can rename to UNSAFE_componentWillUpdate.
Please update the following components: CalendarPicker, Swiper
The fixes are actually simple and maintain backward compatibility.
Replace componentWillMount with componentDidMount or move it to the constructor.
Replace componentWillReceiveProps with componentDidUpdate and tweak logic appropriately.
The fixes are actually simple and maintain backward compatibility. Replace
componentWillMount
withcomponentDidMount
or move it to the constructor. ReplacecomponentWillReceiveProps
withcomponentDidUpdate
and tweak logic appropriately.In the rare case that
getDerivedStateFromProps
is necessary, a polyfill can be used to maintain backwards compatibility. See https://github.com/reactjs/react-lifecycles-compat