react-native-komect-uikit
Version:
React Native UI Toolkit
30 lines (21 loc) • 614 B
JavaScript
// PullPicker.js
;
import React, {Component, PropTypes} from "react";
import {View} from 'react-native';
import Overlay from '../Overlay/Overlay';
import PullPickerView from './PullPickerView';
export default class PullPicker extends Overlay {
static PullPickerView = PullPickerView;
// items: array of string
static show(title, items, selectedIndex, onSelected, options = {}) {
return super.show(
<this.PullPickerView
title={title}
items={items}
selectedIndex={selectedIndex}
onSelected={onSelected}
{...options}
/>
);
}
}