rilyu / teaset

A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这行代码为什么不显示呢

MARIOMARUI opened this issue · comments

async componentDidMount() {
let overlayView = (
<Overlay.View
style={{ alignItems: "center", justifyContent: "center" }}
modal={true}
overlayOpacity={0}
ref={(v) => (this.overlayView = v)}
>
<View
style={{
backgroundColor: "#333",
padding: 40,
borderRadius: 15,
alignItems: "center",
}}
>
2222222222222

</Overlay.View>
);
Overlay.show(overlayView);