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 have a page with a header and a tab navigator as the body, I want to loop through data so that I can scroll through it, when I wrap the entire page with a ScrollView it does not work, although if I just wrap the content of the tab navigator in a ScrollView it works, this is not ideal for me as I do not want the header to be fixed to the top of the page
import {Dimensions, StyleSheet} from 'react-native';
const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
flex: 1,
},
body: {
marginTop: Dimensions.get('screen').height / 14,
},
// Container for entire tab navigator
tabContainer: {
height: Dimensions.get('screen').height,
width: '100%',
backgroundColor: 'white',
},
// Text shown in tab bar
tabBarTitle: {
marginBottom: 3.5,
fontSize: 14,
fontFamily: 'Quicksand-SemiBold',
color: '#212121',
opacity: 0.8,
},
// Text shown in tab bar when selected
tabBarTitleSelected: {
marginBottom: 0,
fontSize: 14,
fontFamily: 'Quicksand-SemiBold',
color: '#00296b',
},
bottomLine: {
borderBottomColor: '#00296B',
borderBottomWidth: 2,
paddingBottom: 2,
},
});
export default styles;
NOTE: The code in the first tab content does not scroll, the code in the second one does, though this isn't the functionality I wanted
Expected Behavior
I need the entire page to scroll along with the header and content
Actual Behavior
The page bounces back as if the height if capped at the screen height, I tried changing the styles of the scroll view, when I try it without putting content inside the TabNavigator.Item it scrolls fine
The text was updated successfully, but these errors were encountered:
I have a page with a header and a tab navigator as the body, I want to loop through data so that I can scroll through it, when I wrap the entire page with a
ScrollView
it does not work, although if I just wrap the content of the tab navigator in aScrollView
it works, this is not ideal for me as I do not want the header to be fixed to the top of the pageSteps to Reproduce
Here is my JS code
Styles:
NOTE: The code in the first tab content does not scroll, the code in the second one does, though this isn't the functionality I wanted
Expected Behavior
I need the entire page to scroll along with the header and content
Actual Behavior
The page bounces back as if the height if capped at the screen height, I tried changing the styles of the scroll view, when I try it without putting content inside the
TabNavigator.Item
it scrolls fineThe text was updated successfully, but these errors were encountered: