JSPM

  • Created
  • Published
  • Downloads 464028
  • Score
    100M100P100Q223241F

A <Modal> component for react-native

Package Exports

  • react-native-modal

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-modal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-modal

A <Modal> component for react-native. This is still very much a work in progress and only handles the simplest of cases, ideas and contributions are very welcome.

Add it to your project

  1. Run npm install react-native-modal --save
  2. var Modal = require('react-native-modal');
  3. At the bottom of your app, add the <Modal> element and use its isVisible prop to toggle visibility. It needs to be at the bottom so that it appears above all other components when it is visible.

Example

See react-native-login for an example, where it is used to produce this:

Example code result