import { ReactElement } from 'react'; import { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native'; import { Binding } from '../../utils/binding'; import { Modifiers, NativeModifiersProp } from '../../utils/modifiers'; export type NativePickerProps = { selection: string; options: any[]; modifiers?: NativeModifiersProp; onEvent?: ( e: NativeSyntheticEvent<{ [key: string]: any; }> ) => void; style?: StyleProp; }; export type PickerProps = { selection: Binding | string; onChange?: (newValue: string) => void; style?: StyleProp; children: ReactElement | ReactElement[]; } & Modifiers;