0.1.6 • Published 2 years ago

react-native-native-qr-display v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-native-qr-display

Native QR Code Display for React Native

This is based on the CPP implementation of @nayuki's brilliant QR-Code-Generator

Installation

npm install react-native-native-qr-display

Usage

import { NativeQRDisplayECCLevel, NativeQRDisplayView } from 'react-native-native-qr-display';

render() {
    return <NativeQRDisplayView
        style={{ backgroundColor: "orange", flex: 1 }}
        // The string data
        stringData="My example QR Text"
        // The Error correction level. The maximum length of string depends on the error correction level (see typescript definitions for appropriate lengths)
        ECC={NativeQRDisplayECCLevel.HIGH}
    />
}
// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT