Content of Container does not scrolling inside ScrollView
See original GitHub issueI have gone through these following points
- Check latest documentation: https://docs.nativebase.io/
- Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
- Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
- Check examples from NativeBase KitchenSink https://github.com/GeekyAnts/NativeBase-KitchenSink
Issue Description
Container content does not scroll if the container is inside a ScrollView
node, npm, react-native, react and native-base version, expo version if used, xcode version
"react": "16.6.0",
"react-native": "0.55.4",
"native-base": "2.8.1",
Steps to reproduce
return (
<ScrollView>
<CustomParallaxHeader />
<Container>
<Tabs>
<Tab heading={<TabHeading style={styles.tabStyle}><Icon style={styles.tabIconStyle} name="list-box" /></TabHeading>}>
<ScrollView style={{ flex: 1 }}>
<List>
<ListItem itemDivider>
<Text style={{ fontWeight: 'bold' }}>Brightwood Town</Text>
</ListItem>
<ListItem >
<Text>Lord Lonwald</Text>
</ListItem>
<ListItem itemDivider>
<Text>Brightwood Forest</Text>
</ListItem>
<ListItem>
<Text>Nathaniel Clyne</Text>
</ListItem>
<ListItem>
<Text>Dejan Lovren</Text>
</ListItem>
<ListItem itemDivider>
<Text>Brightwood Town</Text>
</ListItem>
<ListItem >
<Text>Lord Lonwald</Text>
</ListItem>
<ListItem itemDivider>
<Text>Brightwood Forest</Text>
</ListItem>
<ListItem>
<Text>Nathaniel Clyne</Text>
</ListItem>
<ListItem>
<Text>Dejan Lovren</Text>
</ListItem>
<ListItem itemDivider>
<Text>Brightwood Town</Text>
</ListItem>
<ListItem >
<Text>Lord Lonwald</Text>
</ListItem>
<ListItem itemDivider>
<Text>Brightwood Forest</Text>
</ListItem>
<ListItem>
<Text>Nathaniel Clyne</Text>
</ListItem>
<ListItem>
<Text>Dejan Lovren</Text>
</ListItem>
</List>
</ScrollView>
</Tab>
<Tab heading={<TabHeading style={styles.tabStyle}><Icon style={styles.tabIconStyle} name="images" /></TabHeading>}>
<View style={styles.container}>
<Text>Tab 2</Text>
</View>
</Tab>
</Tabs>
</Container>
</ScrollView>
)
Is the bug present in both iOS and Android or in any one of them?
Both
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Containerview inside scrollview not scrolling - Stack Overflow
I manage to solve this by setting the embedded view to translatesAutoresizingMaskIntoConstraints = false put it in prepareForSegue
Read more >ScrollView does not scroll content or generate inner scrollable ...
ScrollView does not scroll content or generate inner scrollable divs when the container height is set in percentage.
Read more >Using a ScrollView - React Native
The ScrollView is a generic scrolling container that can contain multiple components and views. The scrollable items can be heterogeneous, ...
Read more >Why is my scroll view's content container not large enough?
I've got a scroll view inside an editor window. I could not for the life of me get the horizontal scroll bar to...
Read more >React Native Scrollview 101: The Best Practices Guide - Waldo
ScrollView is a scrollable container that can nest one or more components inside it. It accounts for vertical as well as horizontal ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@FranclisJunior Your code is actually working fine for the scroll of ScrollView inside of a Container…May be you are not getting the scrolling effect due to some other error…Check out the following code
Closing the issue due to no response for a while…Hope your issue has been resolved.You can reopen the issue if you still feel the issue is exclusive to “native-base”…