You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The height of rendering children out side of visiable area. The greater the value is, the less easily you see the blank in the fast sliding process, but the longer the first time it is loaded
116
-
### dynamicMargin (type:number,default: 500)
117
-
The height of dynamic safe margin when sliding too fast. For example, if safeMargin=600 and dynamicMargin=500, it will render 100 height on top and 1100 height on bottom out side of the visiable area when sliding down too fast.
114
+
### safeMargin
115
+
* type: number
116
+
* default: 600
117
+
* The height of rendering children out side of visible area. The greater the value is, the less easily you see the blank in the fast sliding process, but the longer the first time it is loaded
118
+
119
+
### dynamicMargin
120
+
* type: number
121
+
* default: 500
122
+
* The height of dynamic safe margin when sliding too fast. For example, if safeMargin=600 and dynamicMargin=500, it will render 100 height on top and 1100 height on bottom out side of the visible area when sliding down too fast.
118
123
119
124
Notice:
120
125
121
126
1. It does not work when the speed of sliding is slow.
122
127
2. It can not be set larger than safeMargin
123
128
124
129
125
-
### scrollEventThrottle (type: number ,default: ios:16 android:32)
126
-
It is the same as scrollEventThrottle on ScrollView
The callback when a new Section hang on the top of the LargeList.
135
-
### speedLevel1 (type:number, default:4)
136
-
If the speed of scrolling is faster than speedLevel1, LargeList will not rerender, just use "setNativeProps" to move the position. Unit is logic pixels/ms.
137
-
### speedLevel2 (type:number, default:10)
138
-
It does not work for the current version.
139
-
### nativeOptimize (type:bool, default: false)
140
-
Use native optimize, iOS only. This is an experimental prop.If it is set, safeArea doesn't make sense. To use the prop, you should add "${YourProject}/node_modules/react-native-largelist/ios/STTVTableView.xcodeproj" to your iOS project. And make sure link it.
130
+
### scrollEventThrottle
131
+
* type: number
132
+
* default: ios:16
133
+
* It is the same as scrollEventThrottle on ScrollView
134
+
135
+
### onIndexPathDidEnterSafeArea
136
+
* type: (indexPath:IndexPath)=>any
137
+
* default: ()=>null
138
+
* The callback when an indexpath did enter safeArea.
139
+
140
+
### onIndexPathDidLeaveSafeArea
141
+
* type: (indexPath:IndexPath)=>any
142
+
* default: ()=>null
143
+
* The callback when an indexpath did leave safeArea.
144
+
145
+
### showsVerticalScrollIndicator
146
+
* type: bool
147
+
* default: true
148
+
* Show vertical scroll indicator.
149
+
150
+
### onSectionDidHangOnTop
151
+
* type: section=>any
152
+
* default: ()=>null
153
+
* The callback when a new Section hang on the top of the LargeList.
154
+
155
+
### speedLevel1
156
+
* type: number
157
+
* default: 4
158
+
* If the speed of scrolling is faster than speedLevel1, LargeList will not rerender, just use "setNativeProps" to move the position. Unit is logic pixels/ms.
159
+
160
+
### speedLevel2
161
+
* type: number
162
+
* default: 10
163
+
* It does not work for the current version.
164
+
165
+
### nativeOptimize
166
+
* type: bool
167
+
* default: false
168
+
* Use native optimize, iOS only. This is an experimental prop.If it is set, safeArea doesn't make sense. To use the prop, you should add "${YourProject}/node_modules/react-native-largelist/ios/STTVTableView.xcodeproj" to your iOS project. And make sure link it.
169
+
170
+
### onLoadMore
171
+
* type: ()=>any
172
+
* default: null
173
+
* The callback when pull up on the bottom
174
+
175
+
### heightForLoadMore
176
+
* type: ()=>number
177
+
* default: ()=>70
178
+
* function: return the height of Loading More View.
0 commit comments