S.M_Emamian
S.M_Emamian

Reputation: 17393

Horizontal ScrollView and Tabs - native base

I'm using horizontal ScrollView and Tabs.

but I have a problem. this is my view:

 <Tabs>
     <Tab heading="A">
        <ScrollView horizontal={true}> 
           //items
        </ScrollView>
     </Tab>
     <Tab heading="B">

     </Tab>
</Tabs>

when I want to scroll between Items, my tabs will change. how to solve this problem?

Upvotes: 2

Views: 3193

Answers (2)

Harshal
Harshal

Reputation: 8310

setting locked={true} for Tabs components it worked for me. but still it is a bug very annoying.

Upvotes: 1

S.M_Emamian
S.M_Emamian

Reputation: 17393

solved:

<Tabs locked={true} ...

Upvotes: 2

Related Questions