react-weui icon indicating copy to clipboard operation
react-weui copied to clipboard

Toast在安卓上好像不能用

Open ilaipi opened this issue 9 years ago • 2 comments

我一个页面使用了Toast, 在苹果手机上能正常打开。在安卓上打开之后就渲染不出。

查了很久发现把Toast组件去掉,就能正常渲染。

{
    "react": "~15.2.1",
    "weui": "^1.1.0",
    "react-dom": "~15.2.1",
    "react-weui": "^1.0.3"
}

ilaipi avatar Jan 04 '17 07:01 ilaipi

同样也发现这个问题,我是在安卓版的微信中不能用,打开页面白屏,日志是: Potentially unhandled rejection [2] TypeError: Cannot read property 'replaceChild' of null at Function.replaceChildWithTree (webpack:///./~/react-dom/lib/DOMLazyTree.js?:69:21) at Object.Danger.dangerouslyReplaceNodeWithMarkup (webpack:///./~/react-dom/lib/Danger.js?:41:19) at Object.dangerouslyReplaceNodeWithMarkup [as replaceNodeWithMarkup] (webpack:///./~/react-dom/lib/DOMChildrenOperations.js?:124:12) at ReactCompositeComponent._replaceNodeWithMarkup (webpack:///./~/react-dom/lib/ReactCompositeComponent.js?:784:31) at ReactCompositeComponent._updateRenderedComponent (webpack:///./~/react-dom/lib/ReactCompositeComponent.js?:774:12) at ReactCompositeComponent._performComponentUpdate (webpack:///./~/react-dom/lib/ReactCompositeComponent.js?:724:10) at ReactCompositeComponent.updateComponent (webpack:///./~/react-dom/lib/ReactCompositeComponent.js?:645:12) at ReactCompositeComponent.performUpdateIfNecessary (webpack:///./~/react-dom/lib/ReactCompositeComponent.js?:561:12) at Object.ReactReconciler.performUpdateIfNecessary (webpack:///./~/react-dom/lib/ReactReconciler.js?:157:22) at runBatchedUpdates (webpack:///./~/react-dom/lib/ReactUpdates.js?:150:21)

Toast改为div就ok了

tongjun741 avatar Jan 17 '17 11:01 tongjun741

在windows电脑端上也同样因为Toast无法渲染,重新封装一个Toast就好了

myhelloos avatar Apr 12 '17 12:04 myhelloos