mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 14:10:47 +08:00
perf(react): assign initialListSize if not undefined
This commit is contained in:
@@ -446,7 +446,9 @@ class ListView extends React.Component<ListViewProps, ListViewState> {
|
||||
if (Device.platform.OS === 'ios') {
|
||||
nativeProps.numberOfRows = itemList.length;
|
||||
}
|
||||
(nativeProps as ListViewProps).initialListSize = initialListSize;
|
||||
if (typeof initialListSize !== 'undefined') {
|
||||
(nativeProps as ListViewProps).initialListSize = initialListSize;
|
||||
}
|
||||
(nativeProps as ListViewProps).style = {
|
||||
overflow: 'scroll',
|
||||
...style,
|
||||
|
||||
Reference in New Issue
Block a user