Socket
Socket
Sign inDemoInstall

rmc-dialog

Package Overview
Dependencies
19
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rmc-dialog

mobile dialog ui component for react


Version published
Weekly downloads
20K
decreased by-4.76%
Maintainers
4
Install size
2.92 MB
Created
Weekly downloads
 

Readme

Source

m-dialog


react dialog component for mobile

NPM version build status Test coverage gemnasium deps npm download

Screenshot

Install

rmc-dialog

Usage

var Dialog = require('rmc-dialog');

ReactDOM.render(
  <Dialog title={title} onClose={callback1} visible>
      <p>first dialog</p>
  </Dialog>
), document.getElementById('t1'));

// use dialog

API

rmc-dialog(web)

namedescriptiontypedefault
prefixClsThe dialog dom node's prefixClsStringrmc-dialog
classNameadditional className for dialogString
wrapClassNameadditional className for dialog wrapString
styleRoot style for dialog element.Such as width, heightObject{}
zIndexz-indexNumber
bodyStylebody style for dialog body element.Such as heightObject{}
maskStylestyle for mask element.Object{}
visiblecurrent dialog's visible statusBooleanfalse
animationpart of dialog animation css class nameString
maskAnimationpart of dialog's mask animation css class nameString
transitionNamedialog animation css class nameString
maskTransitionNamemask animation css class nameString
titleTitle of the dialogStringReact.Element
footerfooter of the dialogReact.Element
closablewhether show close buttonBooleantrue
maskwhether show maskBooleantrue
maskClosablewhether click mask to closeBooleantrue
onClosecalled when click close button or maskfunction

rmc-dialog/lib/Dialog (react-native)

namedescriptiontypedefault
wrapStylestyle for modal wrapObject{}
maskStylestyle for modal maskObject{}
stylestyle for modalObject{}
animationTypeanimation type for modal content, can be one of `nonefadeslide-up
animationDurationanimation durationnumber300
visiblevisible statebooleanfalse
animateAppearwhether animation on first showbooleanfalse
onClosecalled when closeFunction()=>void
onAnimationEndcalled when animation endFunction(visible:boolean)=>void (animationType !== 'none')

Development

npm install
npm start

Example

http://localhost:8007/examples/

online example: http://react-component.github.io/m-dialog/

react-native

npm run rn-init
npm run watch-tsc
react-native start
react-native run-ios

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-dialog is released under the MIT license.

Keywords

FAQs

Last updated on 06 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc