Method`jumpToIndex`is deprecated.Please upgrade your code to use `jumpTo`instead. "Change your co...

Method`jumpToIndex`is deprecated.Please upgrade your code to use `jumpTo`instead.

使用react-navigation时 会出现该黄色警告,原因是TabNavigator已经被遗弃,使用createBottomTabNavigator或者createMaterialTopTabNavigator,对应的标签栏位置即可


Method`jumpToIndex`is deprecated.Please upgrade your code to use `jumpTo`instead.


我这里替换成createBottomTabNavigator,如图


Method`jumpToIndex`is deprecated.Please upgrade your code to use `jumpTo`instead.

你可能感兴趣的:(Method`jumpToIndex`is deprecated.Please upgrade your code to use `jumpTo`instead. "Change your co...)