React native resources issues
I am an Android App Developer and started working on React-Native from last one month. I have questions, for those I am unable to find solution: does react-native use sp instead of dp for font-size and what if we want to use dp for font-size. I want to provide hdpi , xhdpi and xxhdpi dimens for a layout, how to do this? How to provide separate dimens for 7 inch tablet, 10 inch tablet and phone? For some purpose, I want to implement isDeviceTablet() method for react-native, how to do that?
Please find below answers to your questions: 1) Does react-native use sp instead of dp for font-size and what if we want to use dp for font-size. Yes react-native use sp for font-size so does the android, so you don't need to change it to dp. https://developer.android.com/reference/android/widget/TextView.html#attr_android:textSize 2) I want to provide hdpi, xhdpi and xxhdpi dimens for a layout, how to do this? No specific folders are there to support dimens directly....