tengo un problema desde que actualicé al último SDK44 y actualicé mi paquete de hoja inferior de gorhom.
Mi componente ShadowBackdrop no se muestra detrás de bottomshet.
Este es mi código.
RENDER SOMBRA COMPONENTE!
import React from "react" import Animated from "react-native-reanimated" import { StyleSheet } from "react-native"; export const renderShadow = (fall, styles) => { const animatedShadowOpacity = Animated.interpolateNode(fall, { inputRange: [0, 1], outputRange: [0.6, 0], }); return ( <Animated.View pointerEvents="none" style={[ { ...StyleSheet.absoluteFillObject, backgroundColor: "#000", opacity: animatedShadowOpacity, }, ]} />);};
ASÍ ES COMO LO LLAMO EN COMPONENTE REAL:
<Portal> {renderShadow(fall, styles)} <BottomSheet index={0} ref={bottomSheetRef} snapPoints={snapPoints} handleComponent={null} backdropComponent={BottomSheetBackdrop} enableContentPanningGesture={gHandle} enablePanDownToClose={true} > <BottomSheetContainer /> </BottomSheet> </Portal> <PortalHost name="custom_host" />