Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
react-native-qrcode-scanner-screen
Advanced tools
Readme
A highly customizable QR Code scanner based on react-native-qrcode-scanner-view.
I had this issue and I didn't get any solution on this page. There is problem with scanBarStyle and somebody has recommended remove scanBarStyle property. I changed this property in original QR Scanner file instead of removing. Also there is problem with componentDidMount() and componentWillUnmount() functions. I fixed this problem with the following codes.
listener;
componentDidMount() {
listener = AppState.addEventListener("change", this.handleAppStateChange);
}
componentWillUnmount() {
listener.remove();
this.rnCamera && this.rnCamera.pausePreview();
}
Prop | Type | Default |
---|---|---|
maskColor | string | #0000004D |
rectStyle | object | height: 300, width: 300, borderWidth: 0, borderColor: '#000000', marginBottom: 0 |
cornerStyle | object | height: 32, width: 32, borderWidth: 6, borderColor: '#E65100' |
cornerOffsetSize | number | 0 |
isShowCorner | bool | true |
scanBarStyle | object | marginHorizontal: 8, borderRadius: 2, backgroundColor: '#E65100' |
isShowScanBar | bool | true |
scanBarAnimateTime | number | 3000 |
scanBarAnimateReverse | bool | false |
scanBarImage | any | |
hintText | string | |
hintTextStyle | object | color: '#fff', fontSize: 14, backgroundColor: 'transparent', marginTop: 32 |
renderHeaderView | func | - |
renderFooterView | func | - |
onScanResult | func | - |
scanInterval | number | 2000 |
torchOn | bool | false |
userFront | bool | false |
FAQs
Customizable QR Code Scanner
The npm package react-native-qrcode-scanner-screen receives a total of 0 weekly downloads. As such, react-native-qrcode-scanner-screen popularity was classified as not popular.
We found that react-native-qrcode-scanner-screen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.