0.0.13 • Published 8 years ago

react-native-popover-manager v0.0.13

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

react-native-popover-manager

React Native Module to present popovers for iPad

This is just a fork of the Modal Component in the React Native Project. Please refer to that for more documentation.

Modified files are: RCTModalHostView.h, RCTModalHostView.m (now PopoverView), RCTModalHostViewManager.h, RCTModalHostViewManager.m (now PopoverManager) and Modal.js (now popovermanager.js)

Install

npm install --save react-native-popover-manager
react-native link react-native-popover-manager

Example

import React, { Component } from 'react';
import {
  View
} from 'react-native';
var Popover = require('react-native-popover-manager');
export default class PopoverExample extends Component {
  constructor(props) {
    super(props);
    this.state = {
      popoverVisible:true 
    };
  }
  render() {
    return (
      <Popover
        originX={384}
        originY={512}
        originW={1}
        originH={1}
        popoverW={384}
        popoverH={384}
        onShow={() => {
          this.setState({
            popoverVisible: true
          });
        }}
        onClose={() => {
          this.setState({
            popoverVisible: false
          });
        }}
        visible={this.state.popoverVisible}>
        <View>
        </View>
      </Popover>
    );
  }
}
0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago