Skip to content

Commit 8e572e4

Browse files
committed
Exclude Incubator TabController components from docs
1 parent 293b233 commit 8e572e4

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

src/incubator/TabController/PageCarousel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Constants} from '../../helpers';
77
const {Code, block, call} = Animated;
88

99
class PageCarousel extends PureComponent {
10+
static displayName = 'IGNORE';
1011
static contextType = TabBarContext;
1112
carousel = React.createRef();
1213

src/incubator/TabController/TabBar.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const {
3939
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/incubatorScreens/TabControllerScreen/index.js
4040
*/
4141
class TabBar extends PureComponent {
42-
static displayName = 'TabController.TabBar';
42+
static displayName = 'IGNORE';
4343
static contextType = TabBarContext;
4444

4545
static propTypes = {
@@ -306,13 +306,13 @@ class TabBar extends PureComponent {
306306
extrapolate: Extrapolate.CLAMP
307307
})));
308308
} else {
309-
nodes.push(set(this._indicatorOffset, runIndicatorTimer(new Clock(), currentPage, itemsOffsets)),
309+
nodes.push(set(this._indicatorOffset, runIndicatorTimer(new Clock(), IGNORE)),
310310
set(this._indicatorWidth, runIndicatorTimer(new Clock(), currentPage, itemsWidths)));
311311
}
312312

313313
nodes.push(Reanimated.onChange(currentPage, Reanimated.call([currentPage], this.focusSelected)));
314314

315-
return block(nodes);
315+
return IGNORE);
316316
};
317317

318318
render() {
@@ -418,8 +418,6 @@ function runIndicatorTimer(clock, currentPage, values) {
418418
inputRange: _.times(values.length),
419419
outputRange: values,
420420
extrapolate: Extrapolate.CLAMP
421-
})
422-
]);
423-
}
421+
IGNORE}
424422

425423
export default asBaseComponent(forwardRef(TabBar));

src/incubator/TabController/TabBarItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const DEFAULT_SELECTED_LABEL_COLOR = Colors.blue30;
2020
* @notes: Must be rendered as a direct child of TabController.TabBar.
2121
*/
2222
export default class TabBarItem extends PureComponent {
23-
static displayName = 'TabController.TabBarItem';
23+
static displayName = 'IGNORE';
2424

2525
static propTypes = {
2626
/**

src/incubator/TabController/TabPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {Code, Value, cond, set, and, call, block, eq} = Reanimated;
1313
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/incubatorScreens/TabControllerScreen/index.js
1414
*/
1515
export default class TabPage extends PureComponent {
16-
static displayName = 'TabController.TabPage';
16+
static displayName = 'IGNORE';
1717

1818
static contextType = TabBarContext;
1919

src/incubator/TabController/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const {cond, Code, and, eq, set, Value, block, round, onChange, call} = Reanimat
2424
* @importantLink: https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html#with-wix-react-native-navigation-https-githubcom-wix-react-native-navigation
2525
*/
2626
class TabController extends Component {
27-
static displayName = 'TabController';
27+
static displayName = 'IGNORE';
2828
static contextType = TabBarContext;
2929

3030
static propTypes = {

0 commit comments

Comments
 (0)