import React, { ComponentProps } from 'react'; import { Picker } from '@react-native-picker/picker'; import useTextRoleNucleon from './nucleons/useTextRoleNucleon'; import { StyleSheet, View } from 'react-native'; import { NativeViewGestureHandler } from 'react-native-gesture-handler'; import useSelectorItemsNucleon from './nucleons/useSelectorPropsNucleon'; import { SelectorListProps } from './nucleons/types'; import { useColorRoles } from '../theme/colorSystem'; type PickerProps = ComponentProps; export interface UIPickerControlAtomProps extends Pick, SelectorListProps {} const styles = StyleSheet.create({ fixContainer: { height: 30 }, fixStyles: { marginLeft: -9, marginRight: -13, marginTop: -10 } }); export default function UIPickerControlAtom({ items, onSelectedValueChange, style, ...pickerProps }: UIPickerControlAtomProps) { const { pressable } = useColorRoles(); const normalizedItems = useSelectorItemsNucleon(items); const labelStyle = useTextRoleNucleon({ role: 'uiLabel' }); return ( {normalizedItems.map((item, index) => ( ))} ); }