react-native-reanimated-bottom-sheet
react-native-reanimated-bottom-sheet copied to clipboard
botomsheet doesnt show all text
If i create bottomsheet and change content inside with setstate text tag inside shows only part of content which equivalent to size of screen. if i add height to {styles.botomsheet} it shows good, but I change content and I cannot make static height
const sheetRef = React.useRef(null); const [bottomSheetContentstate, setBottomSheetContentstate] = useState([{}])
const renderInner = () => ( <View style={styles.botomsheet} > <Text> {bottomSheetContentstate.description} </Text> </View> )
<Button title="Open Bottom Sheet" onPress={() => { sheetRef.current.snapTo(0); setBottomSheetContentstate(item) }} />
<BottomSheet ref={sheetRef} initialSnap={1} snapPoints={['80%', 0]} borderRadius={10} renderContent={renderInner} />