Modal

作者: 一朝瑾秋色 | 来源:发表于2018-08-29 15:41 被阅读12次

基本用法 eg:

animationType="slide"

transparent={false}

visible={this.state.modalVisible}

onRequestClose={()=> {

            alert('Modal has been closed.');

          }}>


animationType

enum

slide :slides in from the bottom    从底下弹出

fade :fades into view    逐渐消失

none :appears without an animation    没有动画

transparent

Boolean 背景是否透明

visible

Boolean 是否显示Modal 核心属性

onRequestClose

function 安卓的物理返回键事件

onShow

function Modal显示的时候被调用

相关文章

网友评论

    本文标题:Modal

    本文链接:https://www.haomeiwen.com/subject/kfdleftx.html