@valdio/react-native-scrollable-tabview
Advanced tools
+10
-1
@@ -172,4 +172,14 @@ import React, {Component} from 'react' | ||
| renderScrollableContent() { | ||
| //in case of the collapsible scroll view the pull to refresh animation will be applied on the container | ||
| //on the other case the refresh animations will be applied here. | ||
| const isContainerScrollView = this.props.collapsableBar ? true : false | ||
| const scenes = this._composeScenes() | ||
| return <Animated.ScrollView | ||
| refreshControl={!isContainerScrollView && | ||
| <RefreshControl style={this.props.refreshControlStyle || {}} | ||
| refreshing={this.state.refreshing} | ||
| onRefresh={this._onRefresh}/> || {}} | ||
| showsVerticalScrollIndicator={this.props.showsVerticalScrollIndicator} | ||
| showsHorizontalScrollIndicator={this.props.showsHorizontalScrollIndicator} | ||
| horizontal | ||
@@ -185,3 +195,2 @@ pagingEnabled | ||
| scrollsToTop={false} | ||
| showsHorizontalScrollIndicator={false} | ||
| scrollEnabled={!this.props.locked} | ||
@@ -188,0 +197,0 @@ directionalLockEnabled |
+1
-1
| { | ||
| "name": "@valdio/react-native-scrollable-tabview", | ||
| "version": "0.8.4", | ||
| "version": "0.8.5", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+4
-3
@@ -129,6 +129,7 @@ | ||
| //execute callback in order to stop the refresh animation. | ||
| _onRefresh = (callback) => { | ||
| //execute callback in order to stop the refresh animation. | ||
| setTimeout(callback({test: 'test'}, 3000)) | ||
| } | ||
| networkReqyest().then(response => callback(response)) | ||
| } | ||
| render() { | ||
@@ -135,0 +136,0 @@ return <ScrollableTabView |
+2
-2
@@ -6,3 +6,3 @@ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
| react-timer-mixin@^0.13.3: | ||
| version "0.13.3" | ||
| resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz#0da8b9f807ec07dc3e854d082c737c65605b3d22" | ||
| version "0.13.4" | ||
| resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.4.tgz#75a00c3c94c13abe29b43d63b4c65a88fc8264d3" |
35269
1.81%741
1.09%156
0.65%