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
**`mappingProps`** | Object | {} | Associate mapping data to Stack / Sticky
148
148
**`badges`** | Array | [] | Badges for each Tab < [Read Badge Property](#BadgeProperty) >
149
149
**`tabsStyle`** | Object | {} | The entire Tabs style
150
-
**`tabWrapStyle`** | Object | {} | Single Tab wrap style
150
+
**`tabWrapStyle`** | Object / Function | {} | Single Tab wrap style (The function parameters provide item, index, and need to return the style object, eg. **`return index == 1 && {zIndex: 10}`**)
151
151
**`tabInnerStyle`** | Object | {} | Single Tab inner style
152
152
**`tabActiveOpacity`** | Number | 0.6 | Transparency after Tab button click
**`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)
161
161
**`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)
162
162
**`onTabviewChanged`** | Function | null | Tab switch completion callback (callback contains **`index`**, **`tabLabel`** two formal parameters)
163
+
**`screenScrollThrottle`** | Number | 60 | **`Screen`** Throttle parameters during lateral sliding, Unit (ms)
163
164
**`header`** | Function / JSX Element / Class Component | null | Top component (if the function needs to return Element)
164
165
**`oneTabHidden`** | Boolean | false | Hide itself when there is only one Tab
165
166
**`enableCachePage`** | Boolean | true | Whether the persistent page will not be destroyed after switching
**`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
172
173
**`fixedHeader`** | Boolean | false | Render together with Tabs, fix the top Header, do not follow the scroll
173
174
**`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)
175
+
**`useScrollStyle`** | Object | {} | Set **`contentContainerStyle`** for scrolling **`Tabs`**, usually add margins to the left and right sides **`paddingLeft`****`paddingHorizontal`**
174
176
**`fillScreen`** | Boolean | true | Fill the entire Screen
175
177
**`title`** | Function / JSX Element / Class Component | null | Animation title
**`scrollTo(index: number.required)`** | Function | Swipe up and down to the specified position (passing in 0 is the default positioning to tabs / passing in a negative number is set to the top)
230
232
**`toTabView(index: number.required / label: string.required)`** | Function | Jump to the specified Screen
231
233
**`layoutHeight.container`** | Number | Total height of the Container
232
-
**`layoutHeight.header`** | Number | otal height of the Header
234
+
**`layoutHeight.header`** | Number | Total height of the Header
233
235
**`layoutHeight.tabs`** | Number | Total height of the Tabs
234
236
**`layoutHeight.screen`** | Number | Total height of the Screen
0 commit comments