0.0.4 • Published 5 years ago

@hecom/rn-simplified-popover v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

rn-simplified-popover

npm version

ReactNative气泡组件

examplePng

使用方法可以参考示例程序

属性说明

属性名类型默认值说明是否必填
isVisiblebooleanfalse组件是否展示
displayAreaRectwindow背景区域大小
arrowSizeSizeSize(10, 5)三角大小
placementstring'auto'位置(可传参数:'top','bottom','left','right')
fromRectRect{ x: 0, y: 0, width: 0, height: 0 }三角所指位置
onClosefunc() => { }关闭回调

Rect类型

class Rect {
    constructor(x, y, width, height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }
}

Size类型

class Size {
    constructor(width, height) {
        this.width = width;
        this.height = height;
    }
}