1、安装
#安装icon生成组件
npm install react-native-svg --save
react-native link react-native-svg
#安装二维码生成组件
npm install react-native-qrcode-svg --save
2、示例及效果
- 代码示例
/**
* Copyright (C), 2017-2019
* FileName: App.js
* Author: hf
* Date: 2019/3/27 14:38
* Description: 测试二维码生成
*
* History:
* <author:> <time:> <version:> <desc:>
*/
import React, {
Component} from 'react'