import { Dimensions, StyleSheet, TextStyle, ViewStyle } from 'react-native'; import { COLORS } from '../../themes/colors'; interface IScannerStyles { scannerContainer: ViewStyle; camera: ViewStyle; activityIndicator: ViewStyle; scanButton: ViewStyle; scanButtonText: TextStyle; markerContainer: ViewStyle; markerHorizontalBorder: ViewStyle; markerVericalBorder: ViewStyle; } const { width } = Dimensions.get('window'); const styles = StyleSheet.create({ scannerContainer: { height: width, justifyContent: 'center', alignItems: 'center', backgroundColor: 'black', }, camera: { height: width, overflow: 'hidden', }, activityIndicator: { marginTop: 23, }, scanButton: { paddingVertical: 10, paddingHorizontal: 25, borderRadius: 20, backgroundColor: COLORS.serviceTitleColor, }, scanButtonText: { color: 'white', }, markerContainer: { width: '60%', height: '60%', }, markerHorizontalBorder: { height: 2, width: '100%', borderLeftWidth: 20, borderRightWidth: 20, borderColor: COLORS.blue, position: 'absolute', }, markerVericalBorder: { width: 2, height: '100%', borderTopWidth: 20, borderBottomWidth: 20, borderColor: COLORS.blue, position: 'absolute', }, }); export const markerPositions = StyleSheet.create({ top: { top: 0 }, bottom: { bottom: 0 }, left: { left: 0 }, right: { right: 0 }, }); export default styles;