ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 416 forks source link

ScrollView inside SceneContainer: scroll sometimes don't work #154

Closed jbarradas closed 7 years ago

jbarradas commented 7 years ago

I have a section of the app with RN Tab Navigator, and inside 2 screens, I will basically have <TextInput>s with a <Button> at the end.

The problem is: It's been hard to scroll down or up. Sometimes it scroll right away, but normally not. I've seen some issues with ScrollView, needed the flex: 1 for all <View> parents, but I already tried that but no luck..

So I was wondering if it's some problem with this package. Maybe it's not prepared to handle ScrollViews. Also because I see that it has a <View> with position: 'absolute' and it might influence?

Well, before changing the Tab Navigator and try a new one, I would really like to get a solution for this one. Maybe it's me, failing on something.

I also thought on changing to a <ListView> (which I don't see people complaining on the flex: 1 thing, but honestly, it doesn't seem to be the appropriate component, because it's purpose is to "repeat" some component with several data. And I don't have that data yet, i'm building some "profile editing" fields.

Thanks in advance for any help! :)

ptomasroos commented 7 years ago

We're using ScrollViews inside of it and are not experiencing any problems which you're referring to. Would be great if you could make a reproduction repo example so I can debug it

jbarradas commented 7 years ago

The problem seems NOT to be from this package, but in our code. I created a dummy app to test it and it was OK. In few days I will start to debug this issue, and if I find anything relative to this package, I will get back to you ;) Sorry for opening this issue! Cheers and keep up the good work ;)

ptomasroos commented 7 years ago

Thanks for the response!

amit-btc commented 6 years ago

@ptomasroos @jbarradas Can you please share a small snippet ?

TabNavigator -> ScrollView horizontal -> TabNavigatorItem or wrap it in View ?

ptomasroos commented 6 years ago

If you provide me with a example app I can def take a look at it if you don't mind @Amit-Kolambikar ?