Sunday, August 11, 2019

Warning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.

Warning: componentWillMount is deprecated and will be removed in the 
next major version. Use componentDidMount instead. 
As a temporary workaround, you can rename to UNSAFE_componentWillMount.

Please update the following components: Container, 
Image, ResourceSavingSceneView, TabViewPagerPan, TouchableOpacity, 
Transitioner, withCachedChildNavigation(TabView)

Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks
............................................................................................................................................................................................................................................

Solutions

import { YellowBox } from 'react-native';

YellowBox.ignoreWarnings([
 'Warning: componentWillUpdate is deprecated',
 // 'Warning: componentWillMount is deprecated',
//  'Warning: componentWillReceiveProps is deprecated',
]);

No comments:

Post a Comment