UNPKG

react-native-komect-uikit

Version:
27 lines (18 loc) 628 B
// ActionPopover.js 'use strict'; import React, {Component, PropTypes} from "react"; import {View} from 'react-native'; import Overlay from '../Overlay/Overlay'; import ActionPopoverView from './ActionPopoverView'; export default class ActionPopover extends Overlay { static ActionPopoverView = ActionPopoverView; // fromBounds shape: x, y, width, height // items shape // title: PropTypes.string.isRequired, // onPress: PropTypes.func, static show(fromBounds, items, options = {}) { return super.show( <this.ActionPopoverView fromBounds={fromBounds} items={items} {...options} /> ); } }