reactionic-modal
Custom modal that mimics the one in reactionic
Why
The modals provided by reactionic do not pass events correctly, making it so that when you use:
//... { var demoModal = <DemoModal ...thisprops />; return <IonButton color="dark" type="outline" onClick= thiscontext>Show modal</IonButton> }//... var DemoModal = React;
Events for form inputs do not work as expected, making the file picker input not work at all.
Installing
yarn add reactionic-modal
Usage
Bare bones usage:
<Modal isOpen=thisstateisOpen onRequestClose=thishandleClose> content</Modal>
Ion usage:
; <Modal isOpen=thisstateisOpen onRequestClose=thishandleClose> <IonModal title="Some modal" barClasses="bar-dark" customClasses="" onClose=thishandleClose > content </IonModal></Modal>