Is it possible to create a separate modal component that will be reused with different content on different screens?
I created a bottom sheet in a main index.js component and I can pass different content into the BottomSheet as an example below:
<BottomSheet
ref={bottomSheetRef}
snapPoints={snapPoints}
index={0}
containerHeight={height}
onChange={handleSheetChanges}
handleComponent={() => {
return <View style={styles.container}></View>;
}}>
<View style={styles.contentContainer}>{content}</View>
</BottomSheet>
However, I was not able to move the Bottom Sheet into a separate component: which was quite of a struggle, because the ref is coming undefined for me.