From df95da49cfbadb5c42673dae70aa485672ac5dfe Mon Sep 17 00:00:00 2001 From: jacklam718 Date: Mon, 2 Sep 2019 15:28:00 +0800 Subject: [PATCH] Rename popup dialog -> modal --- README.md | 142 +++++++++--------- .../.flowconfig | 0 .../.gitignore | 0 .../.watchmanconfig | 0 .../App.js | 18 +-- .../app.json | 4 +- .../assets/icon.png | Bin .../assets/splash.png | Bin .../babel.config.js | 0 .../package.json | 4 +- .../yarn.lock | 2 +- package.json | 16 +- 12 files changed, 91 insertions(+), 95 deletions(-) rename {popup-dialog-example => modals-example}/.flowconfig (100%) rename {popup-dialog-example => modals-example}/.gitignore (100%) rename {popup-dialog-example => modals-example}/.watchmanconfig (100%) rename {popup-dialog-example => modals-example}/App.js (94%) rename {popup-dialog-example => modals-example}/app.json (87%) rename {popup-dialog-example => modals-example}/assets/icon.png (100%) rename {popup-dialog-example => modals-example}/assets/splash.png (100%) rename {popup-dialog-example => modals-example}/babel.config.js (100%) rename {popup-dialog-example => modals-example}/package.json (76%) rename {popup-dialog-example => modals-example}/yarn.lock (99%) diff --git a/README.md b/README.md index 52cecec..b863129 100644 --- a/README.md +++ b/README.md @@ -2,25 +2,21 @@ [![npm](https://img.shields.io/npm/dm/react-native-popup-dialog.svg)]() [![npm](https://img.shields.io/npm/v/react-native-popup-dialog.svg)]() -## React Native Popup Dialog -React Native Popup Dialog for iOS & Android. - -Another similar dialog component: [react-native-dialog-component](https://github.com/jacklam718/react-native-dialog-component) the main difference is style. - -Pull request are welcomed. Please follow [Airbnb JS Style Guide](https://github.com/airbnb/javascript) +## React Native Modals +React Native Modals Library for iOS & Android. #### How to thank me ? Just click on ⭐️ button 😘 [Try it with Exponent](https://exp.host/@jacklam718/popup-dialog-example)
- +

- + -    -    - +    +    + ## BREAKING CHANGE @@ -29,149 +25,149 @@ Has a lot of backward incompatible changes in `v0.16.0`. Please, Read the Docs b ## Installation ``` -npm install --save react-native-popup-dialog +npm install --save react-native-modals # OR -yarn add react-native-popup-dialog +yarn add react-native-modals ``` ## Exposed Modules -* Dialog -* Overlay -* DialogButton -* DialogContent -* DialogTitle -* DialogFooter +* Modal +* Backdrop +* ModalButton +* ModalContent +* ModalTitle +* ModalFooter * Animation * FadeAnimation * ScaleAnimation * SlideAnimation -* DialogProps -* DialogFooterProps -* DialogButtonProps -* DialogTitleProps -* DialogContentProps -* OverlayProps +* ModalProps +* ModalFooterProps +* ModalButtonProps +* ModalTitleProps +* ModalContentProps +* BackdropProps ## Examples -[Example](https://github.com/jacklam718/react-native-popup-dialog/blob/master/popup-dialog-example/App.js) +[Example](https://github.com/jacklam718/react-native-modals/blob/master/modals-example/App.js) ## Basic Usage ```jsx -import Dialog, { DialogContent } from 'react-native-popup-dialog'; +import Modal, { ModalContent } from 'react-native-modals'; import { Button } from 'react-native'