Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rmc-dialog

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-dialog

mobile dialog ui component for react

  • 0.0.1-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
increased by1.56%
Maintainers
1
Weekly downloads
 
Created
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)

nametypedefaultdescription
prefixClsStringrmc-dialogThe dialog dom node's prefixCls
classNameStringadditional className for dialog
wrapClassNameStringadditional className for dialog wrap
styleObject{}Root style for dialog element.Such as width, height
zIndexNumber
bodyStyleObject{}body style for dialog body element.Such as height
maskStyleObject{}style for mask element.
visibleBooleanfalsecurrent dialog's visible status
animationStringpart of dialog animation css class name
maskAnimationStringpart of dialog's mask animation css class name
transitionNameStringdialog animation css class name
maskTransitionNameStringmask animation css class name
titleString|React.ElementTitle of the dialog
footerReact.Elementfooter of the dialog
closableBooleantruewhether show close button
maskBooleantruewhether show mask
maskClosableBooleantruewhether click mask to close
onClosefunction()called when click close button or mask

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

nametypedefaultdescription
wrapStyle{}style for modal wrap
maskStyle{}style for modal mask
style{}style for modal
animationTypenone|fade|slide-up|slide-downslide-upanimation type for modal content
animationDurationnumber300(ms)
visibleboolean
animateAppearfalsewhether animation on first show
onClose()=>voidcalled when close
onAnimationEnd(visible:boolean)=>void (animationType !== 'none')called when animation end

Development

npm install
npm start

Example

http://localhost:8007/examples/

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

react-native

./node_modules/rc-tools run react-native-init
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

Package last updated on 06 Sep 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc