Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rn上Block组件会被编译成View组件,会有样式问题 #5505

Closed
ShaoGongBra opened this issue Feb 19, 2020 · 5 comments · Fixed by #6565
Closed

rn上Block组件会被编译成View组件,会有样式问题 #5505

ShaoGongBra opened this issue Feb 19, 2020 · 5 comments · Fixed by #6565
Assignees

Comments

@ShaoGongBra
Copy link
Contributor

微信截图_20200219153348
像这样的写法在rn上就会有样式问题

@taro-bot
Copy link

taro-bot bot commented Feb 19, 2020

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Feb 19, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Feb 19, 2020

CC @Pines-Cheng

@Pines-Cheng
Copy link
Contributor

RN 端对于 Block 组件也没有想到更好的处理方法。

@ShaoGongBra
Copy link
Contributor Author

rn端支持这样的语法

<>
  <View />
  <View />
</>

也支持这样的语法

return [
  <View />,
  <View />
]

@Pines-Cheng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants