React Native QR Code Mask Library
npm install advanced-react-native-qrcode-maskReact Native QR Code Mask Component for IOS and Android
---

[![Version][version-badge]][package]
[![MIT License][license-badge]][license]
[![All Contributors][all-contributors-badge]][all-contributors]
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
``sh`
yarn add react-native-qrcode-mask
or
`sh`
npm install react-native-qrcode-mask
`js
import React, { useState } from 'react';
import { View, StyleSheet } from 'react-native';
import Camera from 'react-native-camera';
import QrCodeMask from 'react-native-qrcode-mask';
function App() {
return (
lineDirection='horizontal'
height={80}
edgeColor='red'
topTitle='Bar Code Scanner'
bottomTitle='Put the barcode into the box'
/>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingHorizontal: 16,
},
});
export default App;
`
| Property | Type | Default | Description |
|----------|:----:|:-------:|-------------|
| width | number | 260 | |number
| height | | 200 | |number
| overlayOpacity | | 0.6 | |boolean
| showLineAnimated | | true | |number
| lineThick | | 2 | |number \| string
| lineSize | | 80% | |number
| lineBorderRadius | | 2 | |string
| lineColor | | green | |number
| lineAnimationDuration | | 1500 | ms |'vertical' \| 'horizontal'
| lineDirection | | vertical | |number
| edgeWidth | | 20 | |number
| edgeHeight | | 20 | |string
| edgeColor | | white | |number
| edgeBorderWidth | | 2 | |string
| topTitle | | undefined | |string
| topTitleColor | | white | |TextStyle
| topTitleStyle | | undefined | |ViewStyle
| viewTopTitleStyle | | undefined | |() => React.ReactNode
| renderTop | | undefined | |string
| bottomTitle | | undefined | |string
| bottomTitleColor | | white | |TextStyle
| bottomTitleStyle | | undefined | |ViewStyle
| viewBottomTitleStyle | | undefined | |() => React.ReactNode
| renderBottom | | undefined | |() => React.ReactNode
| renderFrame | | undefined` | |
---
- @Nghi-NV
[version-badge]: https://img.shields.io/npm/v/react-native-qrcode-mask.svg?style=flat-square
[package]: https://www.npmjs.com/package/react-native-qrcode-mask
[license-badge]: https://img.shields.io/npm/l/react-native-qrcode-mask.svg?style=flat-square
[license]: https://opensource.org/licenses/MIT
[all-contributors-badge]: https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square
[all-contributors]: #contributors
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[prs-welcome]: http://makeapullrequest.com