Based on pure JS scripts, without relying on native, no need for react-native link, Title / Header / Tabs / Sticky / Screen components can be flexibly configured, among which Tabs / Sticky can slide When it reaches the top, it will be topped.
Based on pure JS scripts, without relying on native, no need for react-native link,Title / Header / Tabs / Sticky / Screen components can be flexibly configured, among which Tabs / Sticky can slide When it reaches the top, it will be topped; what we support is to independently manage its own Sticky / Screen / Badge / tabLabel configuration in the form of a stack, and inject the ScreenlifecycleonRefresh / onEndReached They will be triggered when the pull-down refresh and the scroll bar hit the bottom, and finally inject more into Screen / Stickyprops
Single Tab wrap style (The function parameters provide item, index, and need to return the style object, eg. return index == 1 && {zIndex: 10})
tabInnerStyle
Object
{}
Single Tab inner style
tabActiveOpacity
Number
0.6
Transparency after Tab button click
tabStyle
Object
{}
Single Tab style
textStyle
Object
{}
Text style in Tab
textActiveStyle
Object
{}
Select the active text style
tabUnderlineStyle
Object
{}
Select the active underline style
firstIndex
Number / Null
null
Set the stack of firstIndex to active (make sure that the number of stacks is greater than to firstIndex when setting the firstIndex value)
syncToSticky
Boolean
true
Whether it is synchronized (render triggered in the Screen componentDidUpdate will update Sticky)
onEndReachedThreshold
Number
0.2
Bottom callback threshold
onBeforeRefresh
Function
null
Pull down to refresh the pre-functions, execute next to execute onRefresh function in Screen, execute toggled to switch system loading, you can pass true / false to specify (callback contains next, toggled two formal parameters)
onBeforeEndReached
Function
null
Slide up to load more pre-functions, execute next will execute the onEndReached function in the Screen (callback contains next formal parameters)
Click to trigger the activated Tab will scroll to Header (high priority)
toTabsOnTab
Boolean
false
Click to trigger the activated Tab will scroll to Tabs
tabsShown
Boolean
true
Configure Tabs display and hide
fixedTabs
Boolean
false
When enableCachePage is true, slide to switch Screen to set the minimum height to ensure that the Header and Tabs will not bounce
fixedHeader
Boolean
false
Render together with Tabs, fix the top Header, do not follow the scroll
useScroll
Boolean
false
Does Tabs support horizontal scrolling (it needs to be enabled when there are multiple category Tabs, it is recommended that tabStyle pass in a fixed width)
useScrollStyle
Object
{}
Set contentContainerStyle for scrolling Tabs, usually add margins to the left and right sides paddingLeftpaddingHorizontal
Enable sliding effect for Tabs, Need to specify width for tabStyle
tabsEnableAnimatedUnderlineWidth
Number
0
To set a fixed width for the Tabs Underline and add a jumping animation, you need to enable tabsEnableAnimated=true. (It is recommended to pass in one third of tabStyle.width or a fixed 30px)
errorToThrow
Boolean
false
console.error will throw an error throw new Error()
Screen components ( If the function component must call initScreen )
sticky
Class Component
Sticky component, The context of this type of component will be returned in the instance
tabLabel
String
Tab display name
tabLabelRender
Function
Custom Tab rendering function, priority is higher than tabLabel
badge
Array
For the current Tab badge, it is mutually exclusive with the badges attribute, and has a higher priority than the outermost attribute badges < Read Badge Property >
toProps
Object
toProps Only pass to Screen without data association
Triggered when pull-down refresh, the formal parameter toggled function is used to switch the display of the native loading state, if the user switches the tab during loading, it will be forced to hide and reset the state