Open mfebriann opened 5 months ago
Hello, From what I found in the code we have the followings props :
` static defaultProps = {
onRead: () => {},
renderTopView: () => {},
renderBottomView: () => (
<View style={{ flex: 1, backgroundColor: "#0000004D" }} />
),
rectHeight: 200,
rectWidth: 200,
flashMode: false,
finderX: 0,
finderY: 0,
zoom: 0.2, // Zoom range 0 - 1
translucent: false,
isRepeatScan: false,
cameraType: "back",
notAuthorizedView: () => (
<View style={styles.authorizationContainer}>
<Text style={styles.notAuthorizedText}>Camera not authorized</Text>
</View>
),
vibrate: true,
};`
Hello, From what I found in the code we have the followings props :
` static defaultProps = {
onRead: () => {}, renderTopView: () => {}, renderBottomView: () => ( <View style={{ flex: 1, backgroundColor: "#0000004D" }} /> ), rectHeight: 200, rectWidth: 200, flashMode: false, finderX: 0, finderY: 0, zoom: 0.2, // Zoom range 0 - 1 translucent: false, isRepeatScan: false, cameraType: "back", notAuthorizedView: () => ( <View style={styles.authorizationContainer}> <Text style={styles.notAuthorizedText}>Camera not authorized</Text> </View> ), vibrate: true,
};`
Noted, thank you sir, I will try it
In the Readme you explain about props
But you just explain about onRead, can you give example one by one each props? And what the default value on each props
Thank you.