ammarahm-ed / react-native-actions-sheet

A Cross Platform(Android, iOS & Web) ActionSheet with a flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
https://rnas.vercel.app
MIT License
1.41k stars 119 forks source link

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

Open AyoCodess opened 3 months ago

AyoCodess commented 3 months ago

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 commented 2 months ago

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