Fit an image to a specific board/screen
To fit an image to a screen we need to calculate the dimentions first. On browsers it’s easy to do, because they calculate in internally, but on when we move to native side, then we have to calculate the size. The following code will help you to achieve that. Cheers and Peace out!!!