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
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
1
2
## react-native-scrollable-tab-view
2
3
3
4
This is probably my favorite navigation pattern on Android, I wish it
@@ -69,7 +70,9 @@ See
69
70
the tab bar. The component has `goToPage`, `tabs`, `activeTab` and
70
71
`ref` added to the props, and should implement `setAnimationValue` to
71
72
be able to animate itself along with the tab content.
72
-
-**`tabBarPosition`**_(String)_ - if `"top"`, the tab bar will render above the tabs. If `"bottom"`, the tab bar will render below the tabs. Defaults to `"top"`.
73
+
-**`tabBarPosition`**_(String)_ Defaults to `"top"`.
74
+
-`"bottom"` to position the tab bar below content.
75
+
-`"overlayTop"` or `"overlayBottom"` for a semitransparent tab bar that overlays content. Custom tab bars must consume a style prop on their outer element to support this feature: `style={this.props.style}`.
73
76
-**`onChangeTab`**_(Function)_ - function to call when tab changes, should accept 1 argument which is an Object containing two keys: `i`: the index of the tab that is selected, `ref`: the ref of the tab that is selected
74
77
-**`onScroll`**_(Function)_ - function to call when the pages are sliding, should accept 1 argument which is an Float number representing the page position in the slide frame.
75
78
-**`locked`**_(Bool)_ - disables horizontal dragging to scroll between tabs, default is false.
0 commit comments