Skip to content

Commit

Permalink
Merge pull request #391 from SquareTable/384-votesviewpage-does-not-u…
Browse files Browse the repository at this point in the history
…se-getitemlayout-correctly

fix: VotesViewPage now correctly provides getItemLayout prop
  • Loading branch information
Sebastian-Webster authored Feb 15, 2024
2 parents 1b9e9ad + fdeae66 commit ff5876a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ android {
applicationId 'com.squaretabledevelopment.socialsquare'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 8
versionCode 12
versionName "0.0.1"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

Expand Down
12 changes: 7 additions & 5 deletions screens/VotesViewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ export default function VotesViewPage({route}) {
DisplayComponent={UserItem}
state={upvoteSelected ? upvoteState : downvoteState}
dispatch={upvoteSelected ? dispatchUpvotes : dispatchDownvotes}
getItemLayout={(data, index) => {
return {
length: 70,
offset: 70 * index,
index
extraProps={{
getItemLayout: (data, index) => {
return {
length: 70,
offset: 70 * index,
index
}
}
}}
noMoreItemsText="No more items left"
Expand Down

0 comments on commit ff5876a

Please sign in to comment.