Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native React Native FlatList:onEndReached无法使用自定义CellRenderComponent 描述_React Native_Z Index_React Native Flatlist_Cellrenderer - Fatal编程技术网

React native React Native FlatList:onEndReached无法使用自定义CellRenderComponent 描述

React native React Native FlatList:onEndReached无法使用自定义CellRenderComponent 描述,react-native,z-index,react-native-flatlist,cellrenderer,React Native,Z Index,React Native Flatlist,Cellrenderer,FlatList的一个众所周知的bug可能是关于zIndex 我正在FlatList中处理拖放卡,但是zIndex没有按预期工作 所以我定制CellRenderComponent作为解决方法(请参阅),但当我使用CellRenderComponent时,onEndReached在实际设备上无法正常工作 试试我的电脑,看看它是如何运作的 反应本机版本: 复制步骤 提供重现问题的详细步骤列表 列表中的zIndex有问题 自定义CellRenderComponent 现在,onedreach工作异常

FlatList
的一个众所周知的bug可能是关于
zIndex

我正在
FlatList
中处理拖放卡,但是
zIndex
没有按预期工作

所以我定制CellRenderComponent作为解决方法(请参阅),但当我使用CellRenderComponent时,
onEndReached
在实际设备上无法正常工作

试试我的电脑,看看它是如何运作的

反应本机版本: 复制步骤 提供重现问题的详细步骤列表

  • 列表中的
    zIndex
    有问题
  • 自定义
    CellRenderComponent
  • 现在,
    onedreach
    工作异常
  • 预期结果 FlatList应该调用
    onEndReached
    并在滚动到末尾时加载更多卡,但它似乎在奇怪的点调用
    onEndReached
    ,并向右跳到末尾

    零食、代码示例、屏幕截图或到存储库的链接:

    请不要犹豫纠正我的错误:我是个新手。 先谢谢你

    System:
        OS: macOS 10.15.4
        CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
        Memory: 1.94 GB / 16.00 GB
        Shell: 5.7.1 - /bin/zsh
      Binaries:
        Node: 12.16.3 - /usr/local/bin/node
        Yarn: 1.21.1 - /usr/local/bin/yarn
        npm: 6.14.4 - /usr/local/bin/npm
        Watchman: 4.9.0 - /usr/local/bin/watchman
      SDKs:
        iOS SDK:
          Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
        Android SDK:
          API Levels: 23, 28, 29
          Build Tools: 23.0.1, 28.0.3, 29.0.3
          System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
      IDEs:
        Android Studio: 3.5 AI-191.8026.42.35.6010548
        Xcode: 11.5/11E608c - /usr/bin/xcodebuild
      npmPackages:
        react: ~16.9.0 => 16.9.0 
        react-native: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz => 0.61.4 
      npmGlobalPackages:
        react-native-cli: 2.0.1