4

I've create a tab application with a paging horizontal scroll view has 3 pages like this

<ScrollView
   showsHorizontalScrollIndicator={false}
   style={{ flex: 1 }}
   contentContainerStyle={{ height: '100%' }}
   pagingEnabled
   horizontal>
          <View style={{ width, backgroundColor: 'red' }}>
            <TextInput style={{ width, backgroundColor: '#FFF', height: 100 }} />
          </View>
          <View style={{ width, backgroundColor: 'green' }} />
          <View style={{ width, backgroundColor: 'blue' }} />
        </ScrollView>

As you can see, in the first tab, there's an TextInput, if you enter a long text (about ~50 characters), the scrollview auto scroll and break the UI (see image below) The issue only happen on low version Android (5.1, 4.4, 4.2), works well on high version and on iOS enter image description here

maphongba008
  • 2,114
  • 4
  • 20
  • 33

0 Answers0