react-native-reanimated-bottom-sheet
react-native-reanimated-bottom-sheet copied to clipboard
Slide sheet in from top
Is it possible to make the sheet sliding in from the top instead of bottom? May be quite unusual, but I need that behavior. 😄
+1
+1
+1
+1
I solved that doing the following:
<View style={{width:"100%",height:"100%",position:"absolute",top:0 , transform: [{ rotate: "180deg" }]}}>
<BottomSheet
initialSnap={1}
ref={r => this.sheetRef = r}
snapPoints={[heightPercentageToDP("100%"), heightPercentageToDP("16")]}
renderContent={this.renderContent}
/>
</View>
It's not the best solution but it works 😄 (Remember to rotate inner content too).
+1
+1