react-native-reanimated-bottom-sheet icon indicating copy to clipboard operation
react-native-reanimated-bottom-sheet copied to clipboard

botomsheet doesnt show all text

Open med100s opened this issue 3 years ago • 0 comments

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} />

med100s avatar Aug 05 '21 19:08 med100s