Initial commit
This commit is contained in:
21
components/CameraAddTile.tsx
Normal file
21
components/CameraAddTile.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import { TouchableOpacity } from 'react-native';
|
||||
import { Camera } from 'lucide-react-native';
|
||||
|
||||
interface CameraAddTileProps {
|
||||
onPress: () => void;
|
||||
size: number;
|
||||
}
|
||||
|
||||
export default function CameraAddTile({ onPress, size }: CameraAddTileProps) {
|
||||
return (
|
||||
<TouchableOpacity
|
||||
onPress={onPress}
|
||||
activeOpacity={0.7}
|
||||
style={{ width: size, height: size }}
|
||||
className="mb-2 bg-blue-50/50 rounded-2xl border-2 border-dashed border-[#1071C2]/40 items-center justify-center"
|
||||
>
|
||||
<Camera size={28} color="#1071C2" />
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user