Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户在我的应用中滚动帖子时,我想识别用户现在看到的当前帖子。
您可以从滚动获取 y 位置contentOffset
contentOffset
<ScrollView ref={(s) => this.scrollview = s} onScroll={(event) => {console.log(event.nativeEvent.contentOffset.y)}} ... ></ScrollView>