Releases: zyslife/react-native-head-tab-view
v4.0.0-rc.2
- Fixed issue with onStartRefresh being called multiple times
- Fixed an issue where clicking on a Tabbar item would cause a lag
v4.0.0-rc.1
The version is in the stability tip.
- Fixed bug where you could not customize the refreshControl component.
- Fixed some display issues with the sliding head.
- Optimize some of the other experiences, and simply implement a drop-down refresh component, which you can see in
ExamplescrollTrans.tsx
v4.0.0-rc.0
🎉🎉🎉 v4.0.0-rc.0 has been released, I hope you can help me test and collect questions.
In this version, there is a big change. All animations will run on the UI thread, which will make the components much smoother. Unfortunately, the version requiring React Native is greater than 0.62.2. Because we rely on react-native-reanimated2.0, that's what it requires.
Here are some changes and optimizations.
Disruptive Changes:
- Remove
makeHeaderHeightand change it toheaderHeight
It's not mandatory, but it would be nice if you did
- Removed
SlideAnimatedmode
this mode was used for ScrollView/FlatList scrolling stalling when dragging headers, no longer needed.
- Remove the scene's
refreshHeightproperty
Both the TabView and Scene used to have the refreshHeight property. Now I think they are duplicate, just set refreshHeight on the TabView, its default value is 80
- The usage of
HPageViewHochas changed
# Past usage:
import { HPageViewHoc } from 'react-native-head-tab-view'
const HScrollView = HPageViewHoc(ScrollView)
const HFlatList = HPageViewHoc(FlatList)
const HSectionList = HPageViewHoc(SectionList)
# Current usage
import { HScrollView,HFlatList,HSectionList } from 'react-native-head-tab-view'