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

  1. 新聞資(zī)訊
  2. 技術百科
公司新聞 案例分(fēn)享 技術百科 行業動态

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

來源:奇站網絡 浏覽量:2200 發布日期: 2022-03-25

react native使用react-navigation報錯

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

方法一(yī)

  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

參考資(zī)料:
https://stackoverflow.com/questions/70756058/react-native-react-native-gesture-handler-seems-like-using-an-old-api-after-ya

标簽:

廈門市中資源網絡服務有限公司

電(diàn)話(huà):13313868605

QQ:3413772931

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


                    掃一(yī)掃加我(wǒ)咨詢