What is the default unit of style in React Native?

后端 未结 4 1506
既然无缘
既然无缘 2020-12-13 00:20

I am contributing to an Open Source Project where I am developing Material design for React Native. I am blocked at work,I am unable to make some UI level enhancements w.r.t

4条回答
  •  孤城傲影
    2020-12-13 00:28

    It is the pixel ratio that you have to consider. pixel represents an absolute value. pixel ratio is a relative value. to make app screen and components responsive you have to use pixel ratio.

    i have been using in multiple apps already. and i think that is how you have to do it. hope this answers your question.

提交回复
热议问题