React Native ListView: How to scroll to a particular row

后端 未结 1 1287
粉色の甜心
粉色の甜心 2020-12-10 07:40

In NativeiOS you can make a UITableView scroll to a particular UITableViewCell using:

[tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:87 inSec         


        
1条回答
  •  余生分开走
    2020-12-10 08:39

    Use a ScrollView with contentOffset={{ x: offsetX, y: offsetY }} and calculate the offset variables depending on which row you want to scroll to.

    0 讨论(0)
提交回复
热议问题