RN 开始学习

  1. React Native still has the concept of style inheritance, but limited to text subtrees.
  2. All dimensions in React Native are unitless, and represent density-independent pixels.
  3. If a parent does not have either a fixed width and height or flex, the parent will have dimensions of 0 and the flex children will not be visible.
  4. the flex parameter only supporting a single number.
  5. For stretch to have an effect, children must not have a fixed dimension along the secondary axis.
  6. Pressing the button will call the "onPress" function.
  7. The ScrollView works best to present a small amount of things of a limited size. All the elements and views of a ScrollView are rendered, even if they are not currently shown on the screen. If you have a long list of more items than can fit on the screen, you should use a FlatList instead.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容