import { MainColor } from "@/constants/color-palet"; import React from "react"; import { StyleProp, StyleSheet, TextInput, View, ViewStyle } from "react-native"; interface CircularInputProps { value?: string | number onChange?: (value: string | number) => void; icon?: React.ReactNode; style?: StyleProp } const CircularInput: React.FC = ({ value, onChange, icon, style }) => { return ( {icon ? ( icon ) : ( )} ); }; const styles = StyleSheet.create({ circleContainer: { width: 60, height: 60, borderRadius: 40, // Setiap setengah dari lebar/tinggi borderWidth: 2, borderColor: MainColor.yellow, // Warna kuning justifyContent: "center", alignItems: "center", }, input: { color: MainColor.yellow, // Warna kuning fontSize: 24, fontWeight: "bold", textAlign: "center", padding: 0, backgroundColor: "transparent", }, }); export default CircularInput;