When using React Native to determine some of the modeling parameters, they have no units:
welcome: {
fontSize: 20,
margin: 10,
}
I guess the reason is that this is cross-platform code, and iOS and Android use different blocks.
docs are not very useful as units are used in all examples rem, and there is no mention of units anywhere.
So what units are used for each platform?
Edit: another answer doesn't say which units are used in Android. I suppose he is dp, but he is not listed anywhere.
source
share