dynamic sized toast based on content
Hey fellows, any reason this has not been merged yet?
Hey fellows, any reason this has not been merged yet?
Not sure... @tgmarinho any insights?
when merge it?
This would resolve https://github.com/calintamas/react-native-toast-message/issues/539
This can be done by using BaseToast "style" and "contentContainerStyle" props
const Toast = (props) => {
return <BaseToast
{...props}
text1NumberOfLines={0}
text2NumberOfLines={0}
contentContainerStyle={styles.contentContainer}
style={styles.base}
/>
}
const styles = StyleSheet.create({
base: {
minHeight: 60,
minWidth: 340,
width: undefined,
height: undefined,
paddingVertical: 16,
},
contentContainer: {
paddingHorizontal: 20,
},
});
@davru Certainly there are workarounds, thanks for this one. But it does not discount that this is a bug tbh, UI elements need to be responsive