Skip to content

Commit 0d0f546

Browse files
committed
Fix weird issues
1 parent 07d17d6 commit 0d0f546

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/incubator/TabController/TabBar.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ class TabBar extends PureComponent {
306306
extrapolate: Extrapolate.CLAMP
307307
})));
308308
} else {
309-
nodes.push(set(this._indicatorOffset, runIndicatorTimer(new Clock(), IGNORE)),
309+
nodes.push(set(this._indicatorOffset, runIndicatorTimer(new Clock(), currentPage, itemsOffsets)),
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 IGNORE);
315+
return block(nodes);
316316
};
317317

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

423425
export default asBaseComponent(forwardRef(TabBar));

0 commit comments

Comments
 (0)