sophister / react-native-pull-to-refresh-custom

Custom pull to refresh Header supporting for React Native ScrollView/FlatList
97 stars 23 forks source link

一点建议 #4

Open Dawninest opened 4 years ago

Dawninest commented 4 years ago

参考iOS原生的下拉值和拖动值的比例, 拖动值只有下拉值的0.5左右, 可以在 PullToRefresh.tsx 的 169 行 setValue的时候乘个参数: this.state.containerTop.setValue(gestureState.dy * 0.5); 我用的0.5,感觉有内味了