Closed kwoktung closed 1 month ago
Optional estimatedItemSize
property
Made the estimatedItemSize
property in the IListViewProps
type optional, enhancing flexibility for developers.
Updated itemSize
variable calculation
The calculation of the itemSize
variable was modified to cater to the optional estimatedItemSize
.
Introduced getItemLayout
variable
Added a getItemLayout
variable which helps in calculating the item layout based on their size, improving user interface consistency.
Import platformEnv
enhancement
Added a new import statement for platformEnv
from @onekeyhq/shared/src/platformEnv
, which should give access to platform-specific configurations.
Advanced estimatedItemSize
calculation
Introduced a new estimatedItemSize
variable, which calculates the estimated item size based on the media
value, leading to a more responsive and dynamic layout sizing.
Enhanced SectionList
component
The estimatedItemSize
property in the SectionList
component was updated to use the newly created estimatedItemSize
variable.
Review or Edit in CodeSandbox
Open the branch in Web Editor • VS Code • Insiders
Open Preview