React-native-tab-view: Swiping from TextInput does not work on Android

Created on 29 Jan 2020  路  1Comment  路  Source: satya164/react-native-tab-view

Current behaviour

I'm using the MaterialTopTabNavigator and one tab contains a TextInput. On Android, trying to switch tabs by swiping from this tab does not work.

Expected behaviour

I expect swiping between tabs with a TextInput to also work on Android.

Code sample

https://snack.expo.io/@lerosen/swiping-on-textinput-does-not-work---github-demo-

What have you tried

Tried different versions and the TextInput from react-native-gesture-handler

Your Environment

iOS or Android | Android
-- | --
@react-navigation/native | ^5.0.0-alpha.18
@react-navigation/material-top-tabs | ^5.0.0-alpha.22
react-native-tab-view | ^2.11.0
react-native | 62.0.0
expo | 36.0.0

bug

Most helpful comment

After the v5 release I found the option to set hze viewpager behaviour. I tried using
ViewPagerAdapter from 'react-native-tab-view-viewpager-adapter' and in that case swiping works again.

>All comments

After the v5 release I found the option to set hze viewpager behaviour. I tried using
ViewPagerAdapter from 'react-native-tab-view-viewpager-adapter' and in that case swiping works again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nastarfan picture nastarfan  路  3Comments

f6m6 picture f6m6  路  3Comments

ashusdn picture ashusdn  路  4Comments

itzsaga picture itzsaga  路  3Comments

compojoom picture compojoom  路  4Comments