MarnoDev / React Native Qrcode Scanner View
Licence: apache-2.0
A highly customizable QR code scanning component for React Native
Stars: ✭ 658
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to React Native Qrcode Scanner View
react-native-android-bottom-navigation
Native UI Component of Android's BottomNavigation for react-native
Stars: ✭ 18 (-97.26%)
Mutual labels: react-native-component
react-native-gesture-detector
Create and detect custom, complex gestures in React Native. 🍭
Stars: ✭ 75 (-88.6%)
Mutual labels: react-native-component
React Native Drag Sort
🔥🔥🔥Drag and drop sort control for react-native
Stars: ✭ 397 (-39.67%)
Mutual labels: react-native-component
react-native-category
react-native-category
Stars: ✭ 23 (-96.5%)
Mutual labels: react-native-component
monalisa-ui
MonalisaUI ✨ React Native UI Library
Stars: ✭ 37 (-94.38%)
Mutual labels: react-native-component
React Native Maps Super Cluster
A Clustering-enabled map for React Native
Stars: ✭ 284 (-56.84%)
Mutual labels: react-native-component
react-native-user-inactivity
Simple component that alerts when the user is inactive (i.e. when the App surface hasn't been touched for X ms)
Stars: ✭ 148 (-77.51%)
Mutual labels: react-native-component
Calendarpicker
CalendarPicker Component for React Native
Stars: ✭ 568 (-13.68%)
Mutual labels: react-native-component
ExploreRN
新版本RN项目,Base on 0.66.4,包含众多RN组件,先实践后使用,累积方案应对各种场景,后端地址:https://github.com/supervons/ExploreKoa
Stars: ✭ 112 (-82.98%)
Mutual labels: react-native-component
React Native Material Menu
Pure JavaScript material menu component for React Native
Stars: ✭ 327 (-50.3%)
Mutual labels: react-native-component
react-native-responsive-image-view
React Native component for scaling an Image within the parent View
Stars: ✭ 152 (-76.9%)
Mutual labels: react-native-component
react-native-bouncing-ball
react native component bouncing ball for iOS and Android
Stars: ✭ 36 (-94.53%)
Mutual labels: react-native-component
React Native Blur
React Native Blur component
Stars: ✭ 3,179 (+383.13%)
Mutual labels: react-native-component
react-native-boilerplate
React Native Boilerplate - React Native Starter Kits : react-navigation and its dependencies, redux, redux persist and redux thunk, redux toolkit, react native vector icons, react-native async storage
Stars: ✭ 68 (-89.67%)
Mutual labels: react-native-component
React Native Tabbar Interaction
Tabbar Component For React-Native
Stars: ✭ 457 (-30.55%)
Mutual labels: react-native-component
react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: ✭ 18 (-97.26%)
Mutual labels: react-native-component
React Native Mentions
Mentions textbox for React Native. Works on both ios and android. 🐳
Stars: ✭ 277 (-57.9%)
Mutual labels: react-native-component
React Native Onboarding Swiper
🛳 Delightful onboarding for your React-Native app
Stars: ✭ 596 (-9.42%)
Mutual labels: react-native-component
React Native Video Controls
A React Native video component with controls
Stars: ✭ 479 (-27.2%)
Mutual labels: react-native-component
React Native Gl Model View
📺 Display and animate textured Wavefront .OBJ 3D models with 60fps - native bridge to GLView (iOS) and jPCT-AE (Android)
Stars: ✭ 313 (-52.43%)
Mutual labels: react-native-component
react-native-qrcode-scanner-view
A highly customized qrcode viewfinder base on react-native-camera. You must set up react-native-camera correctly first before use it.If you need to set more react-native-camera props, you can just use Viewfinder which is exported as QRScannerRectView. Please view source code to learn more.
Guide
Features
- Pure JS code
- Support Android and iOS
- Support React Native 0.60+
- Support scan QR code, Bar code
- Scanning interface can be customized
ScreenShots
Default | MeiTuan | |
---|---|---|
TikTok | DemoHome | Demo Gif |
Installation
// First
set up react-native-camera
// Second
yarn add react-native-qrcode-scanner-view
// or
npm install react-native-qrcode-scanner-view --save
Basic
import { View } from 'react-native';
import { QRScannerView } from 'react-native-qrcode-scanner-view';
export default class DefaultScreen extends Component {
renderTitleBar = () => <Text style={{color:'white',textAlign:'center',padding:16}}>Title</Text>
renderMenu = () => <Text style={{color:'white',textAlign:'center',padding:16}}>Menu</Text>
barcodeReceived = (event) => { console.log('Type: ' + event.type + '\nData: ' + event.data) };
render() {
return (
<View style={{flex:1}}>
< QRScannerView
onScanResult={ this.barcodeReceived }
renderHeaderView={ this.renderTitleBar }
renderFooterView={ this.renderMenu }
scanBarAnimateReverse={ true }/>
</View>
)
}
}
Props
Prop | Type | Default | Optional |
---|---|---|---|
maskColor | string | #0000004D | true |
rectStyle | object | height: 300, width: 300, borderWidth: 0, borderColor: '#000000', marginBottom: 0 |
true |
cornerStyle | object | height: 32, width: 32, borderWidth: 6, borderColor: '#1A6DD5' |
true |
cornerOffsetSize | number | 0 | true |
isShowCorner | bool | true | true |
scanBarStyle | object | marginHorizontal: 8, borderRadius: 2, backgroundColor: '#1A6DD5' |
true |
isShowScanBar | bool | true | true |
scanBarAnimateTime | number | 3000 | true |
scanBarAnimateReverse | bool | false | true |
scanBarImage | any | true | |
hintText | string | true | |
hintTextStyle | object | color: '#fff', fontSize: 14, backgroundColor: 'transparent', marginTop: 32 |
true |
renderHeaderView | func | - | true |
renderFooterView | func | - | true |
onScanResult | func | - | false |
scanInterval | number | 2000 | true |
torchOn | bool | false | true |
userFront | bool | false | true |
About
- 公众号: Marno
- 网站: www.marno.cn
- 掘金: www.juejin.im/user/marno
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].