Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kirkness/react-native-fs-modal

React native full screen modal component.
https://github.com/kirkness/react-native-fs-modal

Last synced: 3 months ago
JSON representation

React native full screen modal component.

Awesome Lists containing this project

README

        

# react-native-fs-modal

React native full screen modal component.

### Demo

![React Native Modal Component GIF](https://carquids.box.com/shared/static/lwu7uso8rx5wqwb9dlvdg6vdqit7szty.gif "React Native Modal Component GIF")

### Usage

**_NOTE:_** If you are using the native status bar you will need to combine this plugin with the [react-native-overlay plugin](https://github.com/brentvatne/react-native-overlay)

##### Using ref

```js

/**
* Two methods show/hide
*/

showModal () {
this.refs.modal.show();
}

hideModal () {
this.refs.modal.close();
}

...

// Your modal's content


```

##### Using a child component

```js

/**
* The hide func will be added to SomeComponent's props.
* This will allow you to add close buttons from within
* the modal's view.
*/

```