@valdio/react-native-scrollable-tabview
Advanced tools
@@ -87,3 +87,3 @@ import React, {Component} from 'react' | ||
| if (Platform.OS === 'android') { | ||
| this._scrollView && this._scrollView.scrollTo({x: newScrollX, y: 0, animated: false}) | ||
| this._scrollView && this._scrollView.scrollTo({x: newScrollX, y: 0, animated: false}) | ||
| } else { | ||
@@ -162,2 +162,3 @@ const rightBoundScroll = this._tabContainerMeasurements.width - (this._containerMeasurements.width) | ||
| <ScrollView | ||
| contentContainerStyle={{flexGrow: 1, justifyContent: 'center'}} | ||
| automaticallyAdjustContentInsets={false} | ||
@@ -178,3 +179,3 @@ ref={(scrollView) => { | ||
| ref={'tabContainer'} | ||
| onLayout={this.onTabContainerLayout} | ||
| onLayout={this.props.disableTabBarOnLayout ? undefined : this.onTabContainerLayout} | ||
| > | ||
@@ -223,3 +224,4 @@ {this.props.tabs.map((name, page) => { | ||
| tabsContainerStyle: {}, | ||
| underlineStyle: {} | ||
| underlineStyle: {}, | ||
| disableTabBarOnLayout: false | ||
| } | ||
@@ -241,3 +243,4 @@ | ||
| underlineStyle: ViewPropTypes.style, | ||
| onScroll: PropTypes.func | ||
| onScroll: PropTypes.func, | ||
| disableTabBarOnLayout: PropTypes.bool | ||
| } | ||
@@ -244,0 +247,0 @@ const styles = StyleSheet.create({ |
+1
-1
| { | ||
| "name": "@valdio/react-native-scrollable-tabview", | ||
| "version": "0.8.10", | ||
| "version": "0.8.11", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
+2
-0
@@ -122,2 +122,4 @@ | ||
| - **`showsHorizontalScrollIndicator`** _(Bool)_ - Show scroll indicator | ||
| - **`disableTabBarOnLayout`** _(Bool)_ - Used on ScrollableTabBar to disable auto Layout of tabs. It sometimes causes a flickering effect. ==> ```<ScrollableTabBar disableTabBarOnLayout={true}/>``` | ||
@@ -124,0 +126,0 @@ ### Pull to refresh example |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
737
0.41%160
1.27%0
-100%34975
-1.77%