Seems like you're using an old API with gesture components, check out new Gestures system

行业动态 公司新闻 案例分享 技术百科

Seems like you're using an old API with gesture components, check out new Gestures system

来源:奇站网络 浏览量:2,417 发布日期: 2022-03-25

react native使用react-navigation报错

Seems like you’re using an old API with gesture components, check out new Gestures system
解决办法有2种

方法一

  1. import { LogBox } from 'react-native';
  2. LogBox.ignoreLogs([
  3. "[react-native-gesture-handler] Seems like you\'re using an old API with gesture components, check out new Gestures system!",
  4. ]);

方法二

@react-navigation/stack改为 @react-navigation/native-stack

参考资料:
https://stackoverflow.com/questions/70756058/react-native-react-native-gesture-handler-seems-like-using-an-old-api-after-ya

标签:

厦门奇站网络科技有限公司

电话:13313868605

QQ:3413772931

地址:厦门集美区软件园三期

网站地图


                    扫一扫加我咨询