Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 769 Bytes

README.md

File metadata and controls

39 lines (35 loc) · 769 Bytes

coin-pusher

A React-Native coin pusher project

关于react-native-navigation

RNN注册的Screen都需要继承自ScreenComponent, 以实现全局当前Tab导航.

UI尺寸

  • 应用内单位: layout size (dp)

  • 实际尺寸: pixel size (px)

  • 像素密度:

  • PixelRatio.get() === 1 mdpi Android devices (160 dpi)

  • PixelRatio.get() === 1.5 hdpi Android devices (240 dpi)

  • PixelRatio.get() === 2 iPhone 4, 4S iPhone 5, 5c, 5s iPhone 6 xhdpi Android devices (320 dpi)

  • PixelRatio.get() === 3 iPhone 6 plus xxhdpi Android devices (480 dpi)

  • PixelRatio.get() === 3.5 Nexus 6

例子

  • iphone 5s dp:320 x 568 px:640 x 1136
  • iphone 6 dp: 375 x 667 px: 750 x 1134
  • iphone 6 plus dp: 414 x 736 px: 1242 x 2208
  • iphone X