| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import React, {Component} from 'react';
- import {
- ViewStyle
- } from 'react-native';
- interface Result {
- item: string;
- index: number;
- }
- interface BAPickerModalProps {
- modalVisible: boolean;
- onClosePress: ()=>void;
- list: Array<string>;
- selectedIndex: number;
- onConfirm: (result: Result) => void;
- itemStyle?: ViewStyle;
- topBarStyle?: ViewStyle;
- cancelTitle?: string;
- confirmTitle?: string;
- }
- export class BAPickerModal extends Component<BAPickerModalProps> {
-
- }
- export interface PickerItem {
- index: number;
- item: string;
- }
- interface BAPickerProps {
- data: Array<string>
- style?: ViewStyle;
- selectedIndex: number;
- itemStyle?: ViewStyle;
- onValueChange: (item: PickerItem)=>void
- }
- export class BAPicker extends Component<BAPickerProps> {
-
- }
|