All Projects → sishuguojixuefu → react-native-qrcode-scanner

sishuguojixuefu / react-native-qrcode-scanner

Licence: Apache-2.0 License
A highly customizable QR code scanning component for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-qrcode-scanner

ips-qr-code
IPS QR Code Generator
Stars: ✭ 30 (+150%)
Mutual labels:  qrcode
attic
A collection of personal tiny tools - mirror of https://gitlab.com/hydrargyrum/attic
Stars: ✭ 17 (+41.67%)
Mutual labels:  qrcode
qr-code-unity-3d-read-generate
Generating a QR code / Scanning a QR code in Unity 3D. Pre-build DLL and sample code from old Unity
Stars: ✭ 70 (+483.33%)
Mutual labels:  qrcode
qrcode
A simple library for generating QR codes in C.
Stars: ✭ 23 (+91.67%)
Mutual labels:  qrcode
STMQRCode
QR code generator for STM32F407
Stars: ✭ 23 (+91.67%)
Mutual labels:  qrcode
QrCodeGenerator
QR Code Generator for .NET
Stars: ✭ 66 (+450%)
Mutual labels:  qrcode
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (+1625%)
Mutual labels:  qrcode
AusweisBot
Telegram bot to generate self-authorizations for moving around during covid-19 pandemic in France
Stars: ✭ 13 (+8.33%)
Mutual labels:  qrcode
quagga2-reader-qr
Quagga2 sample external reader for QR codes
Stars: ✭ 20 (+66.67%)
Mutual labels:  qrcode
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (+91.67%)
Mutual labels:  qrcode
ShortURL
短网址生成器,演示地址:http://t.haojima.net/
Stars: ✭ 50 (+316.67%)
Mutual labels:  qrcode
WiFiQRCodeKit
Library helping Wi-Fi configurations over QR codes
Stars: ✭ 35 (+191.67%)
Mutual labels:  qrcode
covid19-qrcode
😷 Get a temporary QR-code, which to use to entrance public facilities using the NAVER QR-CheckIn service. 집합시설 출입을 위한 대한민국 전자출입명부 QR 체크인에 사용되는 QR 이미지를 빠르게 추출합니다.
Stars: ✭ 20 (+66.67%)
Mutual labels:  qrcode
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (+58.33%)
Mutual labels:  qrcode
r scan
📷🖨Flutter二维码&条形码扫描插件,支持相机、文件、链接、Uint8List类型扫描
Stars: ✭ 108 (+800%)
Mutual labels:  qrcode
python
Build Python extension with Dynamsoft Barcode Reader.
Stars: ✭ 35 (+191.67%)
Mutual labels:  qrcode
Dracker
An iOS and React App to track debt and send/receive payments.
Stars: ✭ 22 (+83.33%)
Mutual labels:  qrcode
barcode scan2
[reborned barcode_scan] A flutter plugin for reading 2D barcodes and QR codes.
Stars: ✭ 43 (+258.33%)
Mutual labels:  qrcode
gn-api-sdk-node
SDK em NodeJS integrada a API Gerencianet. Esta SDK está preparada para integração à API Pix e API Boletos da Gerencianet, que lhe permite realizar o gerenciamento de cobranças Pix com QR Code e Pix Copia e Cola, boleto/Bolix, carnê, cartão de crédito e muito mais.
Stars: ✭ 33 (+175%)
Mutual labels:  qrcode
Xam.Forms.QRCode
A QRCode renderer based on SkiaSharp.
Stars: ✭ 16 (+33.33%)
Mutual labels:  qrcode

ac-qrcode-rn

特性

  • 支持扫描二维码、条形码
  • 支持 Android 和 iOS 系统
  • 基于 react-native-camera
  • 轻松实现各类扫描界面

安装

$ yarn add ac-qrcode-rn
$ yarn add react-native-camera
$ react-native link react-native-camera

基本使用

import React,{Component} from 'react'
import { Text, StyleSheet } from 'react-native'
import { QRScannerView } from 'ac-qrcode-rn'
import { Toast } from 'antd-mobile-rn'

class DefaultScreen extends Component {
  constructor(props) {
    super(props)
  }

  componentDidMount() {}
  
  onScanResultReceived = ({ data, type }) => {
    console.log(`Type: ${type}\nData: ${data}`)
    // do anything
  }

  renderTopBarView() {
    return (
      <Text style={styles.text}>这里添加标题</Text>
    )
  }

  renderBottomMenuView() {
    return (
      <Text style={styles.text}>这里添加底部菜单</Text>
    )
  }

  render() {
    return (
      <QRScannerView
        onScanResultReceived={this.onScanResultReceived}
        renderTopBarView={this.renderTopBarView}
        renderBottomMenuView={this.renderBottomMenuView}
      />
    )
  }
}

const styles = StyleSheet.create({
  text: {
    color: 'white',
    textAlignVertical: 'center',
    textAlign: 'center',
    fontSize: 20,
    padding: 12,
  },
})

export default DefaultScreen

属性列表

属性名 类型 默认值 可选 描述
maskColor string #0000004D true 遮罩颜色
borderColor string #000000 true 边框颜色
cornerColor string #000000 true 转角颜色
borderWidth number 0 true 边框宽度
cornerBorderWidth number 4 true 转角宽度
cornerBorderLength number 20 true 转角长度
rectHeight number 200 true 扫描狂高度
rectWidth number 200 true 扫描狂宽度
isCornerOffset bool false true 转角是否偏移
cornerOffsetSize number 0 true 转角偏移量
bottomMenuHeight number 0 true 底部操作菜单高度
scanBarAnimateTime number 2500 true 扫描线移动速度
scanBarColor string #22ff00 true 扫描线颜色
scanBarImage any null true 使用图片扫描线
scanBarHeight number 1.5 true 扫描线高度
scanBarMargin number 6 true 扫描线距扫描狂边距
hintText string 将二维码/条码放入框内,
即可自动扫描
true 提示文本
hintTextStyle object { color: '#fff',
fontSize: 14,
backgroundColor:'transparent'}
true 提示文字样式
hintTextPosition number 130 true 提示文字位置
isShowScanBar bool true true 是否显示扫描条
bottomMenuStyle object - true 底部菜单样式
renderTopBarView func - flase 绘制顶部操作条组件
renderBottomMenuView func - false 绘制底部操作条组件
onScanResultReceived func - false 扫描结果回调

感谢

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].