zahidalidev / toastify-react-native

🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!
MIT License
75 stars 17 forks source link

Text overflowing out of alert #13

Closed shivansal closed 1 year ago

shivansal commented 1 year ago

image

Running into an issue where the text is overflowing. Isn't it supposed to automatically wrap? Thoughts ?

seba9999 commented 1 year ago

Why did you close this ? Did you find some workaround ?

jduhking commented 9 months ago

Why did you close this ? Did you find some workaround ?

Simply increase the width of the alert or reduce the font Size. Regardless, its a toast which should be made for simple messages / errors.

You can change the width of the toast using the width prop in the ToastManager or by changing width in the style prop in the ToastManager

seba9999 commented 9 months ago

Well we could have a Toast with 2 lines... It still is a simple message ! The little cross is messing our text here... I've done some ugly work-around with some margin-right on my text for now ..

LorenDorez commented 2 months ago

I ran into a similar issue but just adjusted it with the style prop by setting height to auto, below is a code snippet in case it helps others

<ToastManager theme={theme} duration={10000} style={{height: 'auto', width: '90%'}} />