Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@valdio/react-native-scrollable-tabview

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@valdio/react-native-scrollable-tabview - npm Package Compare versions

Comparing version
0.8.10
to
0.8.11
+7
-4
lib/ScrollableTabBar.js

@@ -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({

{
"name": "@valdio/react-native-scrollable-tabview",
"version": "0.8.10",
"version": "0.8.11",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -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