node: 11.12.0
react-native: 2.0.1
native-base: 2.12.1
Smooth vertical scrolling like on iOS
Vertical scroll not quite possible due to tabchange on minimal horizontal movement
I'm using a Tabs Layout where each Tab contains a Webview
App.js
...
render() {
console.log(this.state.tabLocked);
let showTabs = this.state.data.tabs.length > 1;
let tabs = this.state.data.tabs.map((tab, index) => <Tab key={index} heading={tab.title}><MyWebView url={tab.url}/></Tab>);
return (
<Container scrollEnabled={false}>
<MyToolbar title={'lorem'} showTabs={showTabs}/>
<Content contentContainerStyle={{flex: 1}}>
{showTabs ? (
<Tabs prerenderingSiblingsNumber={2} renderTabBar={() => <ScrollableTab/>}>
{tabs}
</Tabs>
) : (
<Text>No Tabs</Text>
)}
</Content>
</Container>
);
}
....
WebView.js
...
render() {
return (
<WebView
ref={(myWeb) => this.refWeb = myWeb}
javaScriptEnabled={true}
domStorageEnabled={true}
mediaPlaybackRequiresUserAction={true}
startInLoadingState={true}
style={{height: this.state.height}}
source={{uri: 'https://facebook.github.io/react-native/'}}
/>
);
}
...
On Android there is no "Threshold" for vertical scrolling like on iOS. I tried different WebView configurations, source urls, Scrolllisteners but the problem seems consistant. Setting the parameter locked solves the problem, but I would like to change tabs by scrolling as well.
Android

yes, I found this issue
Will look into it
Is there any update to this issue? My current workaround is locking the Tabs on Android and implementing a GestureListener which does the swiping manually on Android. This is by far not as smooth as on iOS.
Up. Im facing this issue also. Is there any solution? >.<
Any feedback on this issue?
any update?