from documentation:

ONEDREachedThreshold数

调用OneDreached的阈值(以像素为单位,虚拟的,非物理的).

从顶层开始?-如果我将值设置为onEndReached threshold={10},那么当我滚动到10像素时,是否会立即调用onEndReached,或者其他什么.

从底层开始?-如果我设置了onEndReachedThreshold={listview height-10}的值,我的onEndReached会在我滚动到10像素时调用吗,或者其他什么.

推荐答案

documentation永远是最好的 Select :

onEndReached function

onEndReachedThreshold number
Threshold in pixels (virtual, not physical) for calling onEndReached.

在我看来:

React-native相关问答推荐

react 本机函数不通过usContext触发

将值从一个 js 文件传递​​到 react native 中的另一个 js 文件:react native

如何防止 VS Code 从react-native-web自动导入?

无法在 React Native iOS 模拟器中按 URI 显示图像

如何从 Firebase 获取所有设备令牌?

React Native TextInput 没有获得焦点

未找到 xcode 'boost/config/user.hpp' 文件

React Native:错误:找不到资源 android:style/TextAppearance.Material.Widget.Button.Borderless.Colored

@react-navigation/stack 与 @react-navigation/native-stack 有什么区别?

error TS2300: Duplicate identifier 'RequestInfo'

React native expection java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/{package}/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit

React Native 检测点击 View

如何在 React Native 中优化图像

如何在 React Native 的 MapView 中设置标记

在 ReactNative 中单击按钮时如何获取 TextInput 中的值

React Native 模块中的依赖注入

如何为 TouchableOpacity 组件创建禁用样式?

React Native font outline / textShadow

React Native 中的 CSS 三角形

如何在 react-native 中为带有图标的按钮建模