gpt4 book ai didi

react-native:无法更新 View 标记 35 的属性

转载 作者:行者123 更新时间:2023-12-04 13:56:00 26 4
gpt4 key购买 nike

遇到错误,但不知道如何解决?我不知道为什么会出现这个错误

我怎样才能找到这个错误?

错误信息:

Unable to update properties for view tag 35
com.facebook.react.uimanager.IllegalViewOperationException: ViewManager for tag 35 could not be found.
View already dropped? false.
Last index 0 in last 100 views[I@1a66828d
at com.facebook.react.uimanager.NativeViewHierarchyManager.resolveViewManager(NativeViewHierarchyManager.java:119)
at com.facebook.react.uimanager.NativeViewHierarchyManager.updateProperties(NativeViewHierarchyManager.java:142)
at com.facebook.react.uimanager.UIImplementation.synchronouslyUpdateViewOnUIThread(UIImplementation.java:290)
at com.facebook.react.uimanager.UIManagerModule.synchronouslyUpdateViewOnUIThread(UIManagerModule.java:400)
at com.facebook.react.animated.PropsAnimatedNode.updateView(PropsAnimatedNode.java:99)
at com.facebook.react.animated.NativeAnimatedNodesManager.updateNodes(NativeAnimatedNodesManager.java:548)
at com.facebook.react.animated.NativeAnimatedNodesManager.runUpdates(NativeAnimatedNodesManager.java:457)
at com.facebook.react.animated.NativeAnimatedModule$1.doFrameGuarded(NativeAnimatedModule.java:105)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:765)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:549)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
  • 系统:
  • 操作系统:Windows 10 10.0.18362
  • CPU:(8) x64
  • 内存:2.67 GB/15.85 GB
  • 二进制文件:
  • 节点:12.16.1
  • yarn :1.22.4
  • npm:6.13.4
  • 守望者:20200604.181126.0
  • SDK:
  • Android SDK:
  • API 级别:20、23、26、27、28、29
  • 构建工具:26.0.2、27.0.3、28.0.3、29.0.3
  • 系统镜像:android-29 | Google Play Intel x86 Atom
  • Android NDK:未找到
  • IDE:
  • Android Studio:版本- 3.6.0.0 AI-192.7142.36.36.6241897
  • 语言:
  • Java:1.8.0_181
  • Python:未找到
  • npm 软件包:
  • @react-native-community/cli:未找到
  • react :16.11.0 => 16.11.0
  • react 原生:0.62.2 => 0.62.2
  • npmGlobalPackages:
  • react 原生:未找到
  • 最佳答案

    这通常发生在您使用 LayoutAnimation 时 react 原生的 API。
    如果是根据 doc 的情况您需要在 jsx 之前添加此代码:
    if (Platform.OS === "android" && UIManager.setLayoutAnimationEnabledExperimental) {
    UIManager.setLayoutAnimationEnabledExperimental(true);
    }

    关于react-native:无法更新 View 标记 35 的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62276114/

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