-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added card scan component and some changes on input group
- Loading branch information
Chathura
authored and
Chathura
committed
Jun 9, 2024
1 parent
6fd66c3
commit 5875176
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; | ||
import React from 'react'; | ||
|
||
const ScanCardButton = () => { | ||
return ( | ||
<TouchableOpacity | ||
style={styles.scanIconRow} | ||
onPress={() => console.log('save card number in context')}> | ||
<Image style={styles.cardScan} source={require('../assets/images/scan.png')} /> | ||
<Text style={styles.label}>Scan Card</Text> | ||
</TouchableOpacity> | ||
); | ||
}; | ||
|
||
export default ScanCardButton; | ||
|
||
const styles = StyleSheet.create({ | ||
cardScan: { | ||
width: 20, | ||
height: 20, | ||
marginRight: 8, | ||
}, | ||
scanIconRow: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}, | ||
label: { | ||
fontSize: 16, | ||
color: '#172E44', | ||
}, | ||
}); |