Open
Description
When using onLayout to get the size of a view, I've experienced differences between the web and mobile (at least iOS, haven't tried Android).
If I have a view, with this style:
{
width: 100,
height: 100,
margin: 8
}
Here's the values I get in the onLayout function for width and height:
- iOS: 100
- Web: 116
It seems that the web implementation adds the margin to the total size of the element, whereas iOS doesn't. I also know that this may not be an ReactXP issue, as it probably relies on the browser. However, if nothing can be done about it, it may be a good idea to had this subtlety to the documentation.