Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo/Callstack Pager View does not display inside bottom sheet #354

Open
AyoCodess opened this issue Apr 10, 2024 · 1 comment
Open

Expo/Callstack Pager View does not display inside bottom sheet #354

AyoCodess opened this issue Apr 10, 2024 · 1 comment

Comments

@AyoCodess
Copy link

AyoCodess commented Apr 10, 2024

When i try to render.a page view component in a side a bottom sheet, the page view is not rendered at all.

https://github.com/callstack/react-native-pager-view

 <ActionSheet
      gestureEnabled={true}
      overlayColor="rgba(0,0,0,0.2)"
      closable={true}
      containerStyle={{
        display: 'flex',
        borderTopLeftRadius: 20,
        borderTopRightRadius: 20,
      }}
      useBottomSafeAreaPadding
      id={props.sheetId}>
      <View style={{ flex: 1, zIndex: 1000 }}>
        <PagerView
          overScrollMode={'always'}
          initialPage={0}
          style={{
            paddingHorizontal: 40,
            flex: 1,
          }}>
          <View style={{ flex: 1, padding: 20 }} key="1">
            <Text style={{ fontSize: 60 }}>THIS IS SOME TEXT</Text>
          </View>
        </PagerView>
      </View>
    </ActionSheet>
@AyoCodess AyoCodess changed the title Expo/Callstack Psger View does not display inside bottom sheet Expo/Callstack Pager View does not display inside bottom sheet Apr 10, 2024
@AyoCodess
Copy link
Author

solution, had to create my own pager view using scrollView and scroll events. (not ideal)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant