react-native-viewpager-enhanced
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "react-native-viewpager-enhanced", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "ViewPager component for react-native, same api on both android and ios.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # First |
@@ -0,0 +0,0 @@ /** |
@@ -65,2 +65,3 @@ /** | ||
<TouchableOpacity | ||
disabled={this.props.disabled} | ||
style={[styles.itemContainer, isSelected ? selectedItemStyle : itemStyle]} | ||
@@ -125,2 +126,2 @@ activeOpacity={0.6} | ||
} | ||
}); | ||
}); |
@@ -110,2 +110,3 @@ /** | ||
<TouchableOpacity | ||
disabled={this.props.disabled} | ||
style={[styles.titleContainer, itemStyle]} | ||
@@ -233,2 +234,2 @@ activeOpacity={0.6} | ||
} | ||
}); | ||
}); |
@@ -0,0 +0,0 @@ /** |
@@ -28,5 +28,2 @@ /** | ||
currentPage: 0, | ||
/** | ||
* iOS not support yet | ||
*/ | ||
pageMargin: 0 | ||
@@ -89,7 +86,11 @@ }; | ||
if (needMonitorTouch) props = Object.assign(props, this._panResponder.panHandlers); | ||
const scrollViewStyle = { | ||
overflow: 'visible', | ||
marginHorizontal: -this.props.pageMargin / 2, | ||
}; | ||
if (this.props.style && !this.props.style.height) | ||
return <ScrollView {...props}/>; | ||
return <ScrollView {...props} style={[this.props.style, scrollViewStyle]}/>; | ||
else return ( | ||
<View style={this.props.style}> | ||
<ScrollView {...props} style={null}/> | ||
<ScrollView {...props} style={scrollViewStyle}/> | ||
</View> | ||
@@ -166,2 +167,2 @@ ); | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32028
642