关于react.js:nativebaseUI库遇到的问题以及解决方案

3次阅读

共计 283 个字符,预计需要花费 1 分钟才能阅读完成。

Toast 组件

不能应用 native-base 自带的 Toast 组件问题

起因:咱们的应用程序组件没有蕴含在 <Root> 内导致
undefined is not an object (evaluating ‘this.toastInstance._root’)]
native-base Toast

在 react-native 的 Modal 里应用 Toast 不显示问题

起因:Toast 的层级没有 Modal 高,敞开 Modal 后,能够看到 Toast,实质是被 Modal 遮挡了
解决方案:
在 Modal 外面套一层 native-base 的 Root 组件
Toast is not working within a Modal

正文完
 0