How to inline Image and Text next to each other. Using View Component
Wanted to inline Image and Text next to each other. I try to wrap both inside Text component it is showing inline but the alignment of image is little weird. Image move to little upward doesn't align to text content. Also I tried to apply css to Image that doesn't work not able to move image vertically.
it is not ideal but vertical alignment can be helpful here
vertical-align can not be applied to Image, so i setup opposite vertical-align to the text. This is a weird trick but it works 🙌🏻
Thanks @jeetiss for quick answer. But vertical alignment not working for me. :( . @jeetiss please check repl
vertical alignment doesn't work in your repl because it has an outdated react-pdf version (3.0.0). please use the latest one (3.1.7)
here PR with the vertical alignment https://github.com/diegomura/react-pdf/pull/2214
Thanks alot @jeetiss. you are a saviour.
@jeetiss there is also one issue with image and text inline. Actually image is getting overlap on Text. When i wrap image and Text inside Text component. repl

@jeetiss can you please help me with above issue
Hi @diegomura, can you look into this? This seems like still an issue, as mentioned by @shai93