openumbrella / react-native-root-tips Goto Github PK
View Code? Open in Web Editor NEWvery simple and powerful way to show a toast in react-native
License: MIT License
very simple and powerful way to show a toast in react-native
License: MIT License
如果在一个弹窗(包含zIndex值)中,弹出toast,toast被覆盖了,出现在下面,希望能自定义zIndex,或者默认给zIndex一个较大的值
componentDidUpdate(prevProps, prevState) {
if (prevProps.user.message !== this.props.user.message) {
if (!!this.props.user.message) {
const msg = this.props.user.message;
Tips.show(msg, { duration: 4000 });
}
}
}
使用 api 调用,设置duration为4s,但是提示还是一闪而过,真机Android7.1.1 小米6,这是Bug吗,还是我使用方式不对?
如题
如果我自己安装了react-native-root-siblings ,会跟本组件引用的react-native-root-siblings冲突,建议删除本地引用,改成说明,手动去引用
在Android8.0中showSuccess 等方法只显示文字不显示图标
raw method 中有 toast 的 return,
react-native-root-tips/lib/Toast.js
Line 101 in 223c2a1
但是到了 convenience method 中却直接丢失了,这样一改其实所谓的便利就没有那么便利了
react-native-root-tips/lib/Toast.js
Line 30 in 223c2a1
官方已经不建议使用了
很棒的功能,不知道能否支持显示自定义组件
如题
希望得到大佬更新
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.