You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the Tab component from RNE and there was a problem when I was trying to implement scrolling, I have this kind of architecture in the profile screen
UserProfileCard
Tab (new posts, blocked posts)
TabView (user posts)
and you should be able to scroll on this profile screen. I wrapped everything with ScrollView but it did not work because TabView components have absolute positioning that is why they don't take any height from the screen, to fix that I should give height manually which is not a good approach in my opinion. I'm not an expert in react native but from what I know as a developer when absolute positioning is used it doesn't take any height or width from the screen. I was reading your TabView.js code in base/dist/TabView.js and there I saw a line where you gave Stylesheet.absoluteFillObject, and if I remove that scrolling works since now TabView takes up space which is what I need. Is it good or is there any way to make my Screen scrollable?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was using the Tab component from RNE and there was a problem when I was trying to implement scrolling, I have this kind of architecture in the profile screen
UserProfileCard
Tab (new posts, blocked posts)
TabView (user posts)
and you should be able to scroll on this profile screen. I wrapped everything with ScrollView but it did not work because TabView components have absolute positioning that is why they don't take any height from the screen, to fix that I should give height manually which is not a good approach in my opinion. I'm not an expert in react native but from what I know as a developer when absolute positioning is used it doesn't take any height or width from the screen. I was reading your TabView.js code in base/dist/TabView.js and there I saw a line where you gave Stylesheet.absoluteFillObject, and if I remove that scrolling works since now TabView takes up space which is what I need. Is it good or is there any way to make my Screen scrollable?
Beta Was this translation helpful? Give feedback.
All reactions