加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

React 开源组件笔记

发布时间:2020-12-15 03:27:14 所属栏目:百科 来源:网络整理
导读:React 开源组件笔记 开源组件react-native-camera 推荐一个跨平台的rn-camera-roll: —-https://www.npmjs.com/package/rn-camera-roll A Camera component for React Native. Also supports barcode scanning!二维码扫描原生Android Zxing googlernpm link

React 开源组件笔记

开源组件react-native-camera

推荐一个跨平台的rn-camera-roll: —->https://www.npmjs.com/package/rn-camera-roll

A Camera component for React Native. Also supports barcode scanning!二维码扫描
原生Android Zxing google
rnpm link不是安装,而是添加原生依赖,对应的组件已经安装好了才能rnpm link
通过这个例子来理解下react native的架构:js环境 jsBridge native环境
业务逻辑是reactJs处理  ui用react写 但实际桥接成native
ref的两种属性:String属性 回调属性(组件render渲染完成后的回调)
官网:https://facebook.github.io/react ... -callback-attribute
this callback will be executed immediately after the component is mounted(组件render之后DidMount之前)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读