GitHub

  • ); // Update (replace) the modal element which is already existed.
  • Modal element created by this library can`t cover other native Modal elements,like: Official Modal Element
  • // Create a Modal element on screen.
  • Support both React element way and javascript class way to invoke, easy to use.
  • let modal = new ModalManager(

react-native-root-modal – A pure JavaScript solution for react native`s modal component

@notbrent: love this pure-js modal solution by @HorcruxChen — it hooks into AppRegistry to minimize boilerplate

Pure javascript solution, easy to install.

way to invoke, easy to use.

import Modal from ‘react-native-root-modal’;

….other elements before … You can add anything inside ….other elements after

import {Manager as ModalManager} from ‘react-native-root-modal’;

// Create a Modal element on screen. let modal = new ModalManager( …modal contents here. ); // Update (replace) the modal element which is already existed. modal.update( …other modal contents here. ); // Destroy it modal.destroy();

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

GitHub