-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access to row's index in renderRow of List #2825
Cannot access to row's index in renderRow of List #2825
Comments
I could manage to access index of each row by passing "renderItem" to List as follows:
But it would be better to define renderItem explicitly to the props of List. |
It might be better to keep backwards compatibility for renderRow's spec, then define a renderItem method explicitly for it. |
@kenji4569 Yes, that's what has been done in the above commit. We can now access the |
@sanketsahusoft |
Oh okay, does FlatList provide (rowData, secId, rowId)? |
I think no.
|
@PlabanJr |
It's done 👍 |
This commit a867e33#diff-adb80937e3be06283394efe72848a734
changes the behavior of the renderRow of List.
Then we can no longer access to the index of each row.
It's ok to change the behavior but we should access to the index anyway.
The text was updated successfully, but these errors were encountered: