fix(taro-router-rn): 页面根节点 height: 100% 无效 #2114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
现在页面默认是用 ScrollView 包裹,但没加 contentContainerStyle,导致页面根节点无法继承页面高度
表现为在页面根节点上设置 flex: 1、height: 100% 时都无法实现全屏
另外文档中关于“页面怎样设置高度 100%”这块说反了,应该是设置为 disableScroll: true + height: 100% 才行,实测 RN 上有效果,但会导致微信小程序上无法滚动,加 overflow: scroll 也不行,只能最外层用 ScrollView