import * as React from 'react'; import { View, Text, Pressable } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import Node from '../node'; import { withTheme } from '../theme'; import { createStylesWithTheme } from './style'; const prefixCls = 'picker-view'; export interface PickerViewProps { title?: React.ReactNode; theme: AnnaNative.Theme; onOK?: (e: any) => void; onCancel?: (e: any) => void; } const PickerView: React.FC = props => { const { title, theme, children, onOK, onCancel } = props; const styles = createStylesWithTheme(theme); return ( 取消 {title} 确定 {children} ); }; export default withTheme(PickerView);