Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/harvestprofit/react-native-modal-patch

A slight rebuild/patch of React Native's Modal implementation to fix unmounting issues.
https://github.com/harvestprofit/react-native-modal-patch

Last synced: about 1 month ago
JSON representation

A slight rebuild/patch of React Native's Modal implementation to fix unmounting issues.

Awesome Lists containing this project

README

        

# react-native-modal-patch

## Getting started

`yarn add https://github.com/HarvestProfit/react-native-modal-patch.git`

### Install

`cd ios && pod install`

## Usage

This is the same API as the react native modal https://facebook.github.io/react-native/docs/modal#docsNav.

```javascript
import Modal from 'react-native-modal-patch';

//....
render() {
return (
this.setModalVisible(false)} // <-- This gets called all the time
>
{/* modal contents */}

);

```