rnxteam / rnx-ui Goto Github PK
View Code? Open in Web Editor NEWA UI Lib for React Native
License: MIT License
A UI Lib for React Native
License: MIT License
Overlay 做了点击事件,所以会拦截 ScrollView 的触屏事件,导致卡顿。
Overlay 有属性 pointerEvents
,可以控制 Overlay 是否可以作为触控事件的目标。(参考:rnx-ui/Overlay at master · rnxteam/rnx-ui)
但是 Dialog 以及衍生的 Alert/Confirm 组件都未对 Overlay 进行设置,此处需要 RNX-UI 进行升级。
作为临时解救方法,在使用上述组件时,如果内部出现了 ScrollView,在其内部包裹 TouchableWithoutFeedback 并绑定处理空函数。(参考:如下)
<Alert>
<ScrollView>
<TouchableWithoutFeedback onPress={() => {}}>
{/* content */}
</TouchableWithoutFeedback>
</ScrollView>
</Alert>
开发过程遇过一种情况, 需要ActionSheet 的组件在比较深的子组件中, 而该子组件的父组件是 absolute 定位的, 因此导致 Overlay 不能全屏.
示意图:
rt,代码中也并无与此相关内容,展示效果的gif倒是有相关内容的展示
像 ToolTip 这个组件的这种 pointerEvents 属性参数,坠吼可以在 readme 里面枚举粗来,一点微小的建议,谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.