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

  1. 新聞資訊
  2. 技術百科
行業動态 公司新聞 案例分享 技術百科

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

來(Come)源:奇站網絡 浏覽量:2395 發布日期: 2022-03-25

react native使用(use)react-navigation報錯

Seems like you’re using an old API with gesture components, check out new Gestures system
解決辦法有2種

方法一(one)

  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改爲(for) @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

地(land)址:廈門集美區軟件園三期


                    掃一(one)掃加我(I)咨詢