1.0.7 • Published 1 year ago
react-native-custom-scanner v1.0.7
react-native-custom-scanner
QR and Bar code Scanner for both android and ios
Installation
npm install react-native-custom-scanner
Usage
import { CustomScanner } from 'react-native-custom-scanner';
const bottomContent = () => {
return <View style={{ margin: 10, width: '100%', borderRadius: 5, alignItems: 'center' }}>
<TouchableOpacity style={styles.buttonStyle} onPress={() =>{} }>
<Text style={{ color: '#fff' }}>Stop Scan</Text>
</TouchableOpacity>
</View>
}
<CustomScanner bottomContent={() => bottomContent()} styles={styles} onSuccessAction={(scanData: string) => console.log(scanData)} />
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
ISC