search

Home  >  Q&A  >  body text

javascript - How is the size determined during react-native layout?

I saw that the official website only says that the unit is not used, but the logical pixel unit is used.
So for example, width: 20; How to determine the 20 here?
When I was making a small program before, the documentation of the small program stated that it was done using the 750 design drawings, but rn seemed to have no instructions in this regard

过去多啦不再A梦过去多啦不再A梦2741 days ago552

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-31 10:39:13

    react-native uses pt as the unit, which is equivalent to a little more than half of the same px. You need to debug it slowly by yourself

    reply
    0
  • Cancelreply