diff --git a/ScrollableTabBar.js b/ScrollableTabBar.js
index 5db37937..eeb13d3d 100644
--- a/ScrollableTabBar.js
+++ b/ScrollableTabBar.js
@@ -158,11 +158,19 @@ const ScrollableTabBar = createReactClass({
backgroundColor: 'navy',
bottom: 0,
};
-
- const dynamicTabUnderline = {
- left: this.state._leftTabUnderline,
- width: this.state._widthTabUnderline,
- };
+ const {
+ underlineStyle: { width }
+ } = this.props;
+ const underLineWidth = width || 20;
+ const dynamicTabUnderline = {
+ left: this.state._leftTabUnderline,
+ width: this.state._widthTabUnderline
+ };
+ let fixUnderLine = {};
+ fixUnderLine = {
+ left: Animated.add(dynamicTabUnderline.left,Animated.divide(Animated.add(dynamicTabUnderline.width,new Animated.Value(-underLineWidth)),2)),
+ width: new Animated.Value(underLineWidth)
+ };
return
+
;