Skip to content

关于 antd-mobile 对应的 RN 版本使用说明 #634

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

Closed
silentcloud opened this issue Dec 13, 2016 · 9 comments
Closed

关于 antd-mobile 对应的 RN 版本使用说明 #634

silentcloud opened this issue Dec 13, 2016 · 9 comments

Comments

@silentcloud
Copy link
Contributor

silentcloud commented Dec 13, 2016

RN 官方从 0.36 有不兼容版本,所以使用 antd-mobile 0.9.x 的推荐使用 0.34 版本;
1.0-alpha 可以使用 0.39

https://github.com/ant-design/ant-design-mobile/blob/master/docs/react/introduce.zh-CN.md#react-native-使用场景

#632 #629 #617 #613 #612

@silentcloud
Copy link
Contributor Author

这个说明 issue ,暂时不要关 @warmhug @afc163

@afc163
Copy link
Member

afc163 commented Dec 13, 2016

加上 peerDependencies ?

@warmhug
Copy link
Contributor

warmhug commented Dec 13, 2016

@afc163 在 0.9.x 上加一下

@warmhug
Copy link
Contributor

warmhug commented Dec 25, 2016

https://github.com/facebook/react-native/releases/tag/v0.36.0
image

是不是把代码里使用 flex: 1 的地方改成 flexGrow: 1 就能兼容 0.34 - 0.39 版本了?我看其他没什么大的变动。

@silentcloud
Copy link
Contributor Author

6d1b7e7 这是对应的改动,只不过 是不是把代码里使用 flex: 1 的地方改成 flexGrow: 1 就能兼容 0.34 - 0.39 版本了 没尝试;

最好还是各用各的版本比较保险,我在 introduce 文档里也有说明

@warmhug
Copy link
Contributor

warmhug commented Dec 28, 2016

试一下,尽量做到兼容。代码一致,能减少后续 0.9 的维护成本

@warmhug
Copy link
Contributor

warmhug commented Dec 29, 2016

List / Radio / Checkbox / TextAreaItem / SearchBar 几个组件的 RN 实现需要完善。 @pingan1927

尽量完全对照相应 web 的功能,尽量能同步到 0.9.x ,尽量做到兼容 rn 0.34~0.39

@silentcloud
Copy link
Contributor Author

flexGrow: 1 试过了,兼容 0.34 ~ 0.39,已保持 master 和 0.9.x 一致

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants