gpt4 book ai didi

react-native - 世博会:UIManager 抛出警告 UIManager

转载 作者:行者123 更新时间:2023-12-01 01:41:15 26 4
gpt4 key购买 nike

此消息似乎某些包正在使用 UIManager["RCTView"] 不再受支持,但我不确定如何解决此问题

Accessing view manager configs directly off UIManager via UIManager['RCTView'] is no longer supported. Use UIManager.getViewManagerConfig('RCTView') instead. - node_modules/expo/build/environment/muteWarnings.fx.js:17:23 in warn - node_modules/react-native/Libraries/ReactNative/UIManager.js:164:12 in get - node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js:42:18 in getValue - node_modules/react-native-gesture-handler/GestureHandler.js:46:10 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/react-native-gesture-handler/index.js:3:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/react-navigation-stack/src/views/StackView/StackViewLayout.js:19:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/react-navigation-stack/src/views/StackView/StackView.js:4:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/react-navigation-stack/src/navigators/createStackNavigator.js:3:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/react-navigation-stack/src/index.js:9:18 in createStackNavigator - node_modules/react-navigation/src/react-navigation.js:107:45 in createStackNavigator * src/components/Navigation/Navigators.js:27:29 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation * src/components/Navigation/index.js:4:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation * src/containers/app/index.js:12:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation * App.js:1:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/expo/AppEntry.js:4:0 in - node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation - node_modules/metro/src/lib/polyfills/require.js:197:45 in guardedLoadModule * null:null in global code

最佳答案

这是由 react-navigation 模块引起的。我假设您使用的是 expo sdk 33。

  • 如果您使用的是 react-navigation v3,您可以降级到版本 2,这应该可以解决问题。或者..
  • 将您的 expo-cli 更新到最新版本。安装最新的 react 导航。然后按如下方式安装附加模块。

  • expo install react-native-gesture-handler react-native-reanimated

    As found in the Docs

    关于react-native - 世博会:UIManager 抛出警告 UIManager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56519383/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com