-
Notifications
You must be signed in to change notification settings - Fork 613
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
5.x hooks or - Discussion #1119
Comments
What kind of react-native ui library do you expect, or what kind of ui do you think is more suitable, feel free to leave your comments to help us in the next development as much as possible to fit the actual needs.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
那个是旧的,很久之前的了。
|
I have used antd (react.js) for some time now. It is great because it includes basic components, but also professional looking components that have more applicability to complex UI needs (usually enterprise-level stuff). ant-design-mobile-rn has the ability to build a great community, matching as many components from antd component framework as possible, and become a very popular react-native library. Once we get past the React 17 hurdle and standardize things, we can embark on a research project to determine what antd components to reimplement for native and go from there. Thoughts on the docs: @BANG88 I am more than willing to start overhauling the docs, we just need to have more discussion. |
个人愿景我对 现状:
优势: 我觉得应该扩大这一优势,支持更多组件平移,让ant-designh和ant-design-mobile-rn两者轻松切换 🚩未来定位:
Future参考ant-design的组件库,想在未来补充一些组件库:
大致样式
|
@1uokun Great insight! I 100% agree with your status quo analysis. Below, I will reference component libraries.
A possible planStage 1My vision for stage 1: I think that both component libraries are relevant. I agree that we should focus on replicating 100% of the
Stage 2 (optional)Once we are done with Stage 1, I don't see why ant-design-mobile can't merge with ant-design. To take the import { useState } from 'react';
import { Calendar } from 'antd';
function onPanelChange(value, mode) {
console.log(value.format('YYYY-MM-DD'), mode);
}
function Test(props)
{
const [isMobile, setIsMobile] = useState();
const resize = () => {
if (window.innerWidth < 375) {
setIsMobile(true);
} else {
setIsMobile(false);
}
};
useEffect(() => {
resize();
window.addEventListener("resize", resize);
}, [isMobile]);
return (
<Calendar
onPanelChange={onPanelChange}
optimizedMobileView={isMobile}
autoChangeToMobile={false}
/>
);
} Stage 3Do the same process for Getting Started@1uokun I can create and manage the project board and other project management and maintain 100% of the documentation, helping out with components when I can. Those rough styles you have are a great start. Ready to get to work re-igniting the ant-design-mobile community. |
But I think |
Yeah, I mean, we could just go full fledged into developing 1:1 components from There is really a need for ant design level enterprise components in the react native world. @1uokun I personally have never had a use case for ant-design-mobile , so I can't speak to how popular it is or anything. I'm for either road as long as |
死就死了,至少 |
@1uokun Are you saying to discontinue Just making sure I understand correctly... Chinese -> English translation can be difficult sometimes. |
Your understanding is right👍 |
Awesome! 😎 Give me a couple of days. I will work out a project plan. What's the easiest way for us to communicate? |
email: [email protected] |
@1uokun I have had a busy end of the week. Will get to you tomorrow about the project plan. 🙌 |
Thank you for sharing, it has brought me a lot of convenience and will always support you. |
版本更新说明
由于这个库变成了个人开发者维护了,所以更多的版本更新是来自于issue的反馈,这里也提一下对于issue的提交规范对我们很重要。
我们将从issues中整理出一些高频问题进行在线讨论
其中问的比较炸眼👀的问题 《这个项目还维护吗》链接 ,我们的一致回答是 “这次一定,这次一定维护” 😂
开发说明
我们严格遵循ant-design的设计语言,所以非常适合在移动端上的中台类应用服务
过多的
props
会导致组件“千疮百孔”,间接导致我们疲于开发和维护,样式上我们只开放
styles
合集对象。想改样式,这可能需要去读源码,比如找到对应的styles name(类似html的class类名)并定义额外样式,内部代码会实现自动merge
比如:
如果你发现这样的样式改动特别多,要么说服UI,要么这个库可能不适合你,我们希望做到“开箱即用”的初衷
把ant-desgin的sketch插件推荐给产品和UI,能节省不少工作量
幸运的是还是有很多组件是通用型的,比如List、Toast、Modal等等
React Hook
截止今天许多组件中使用了
UNSAFE_xx
的生命周期,避免未来react实现异步渲染时可能会造成影响,我们也将在本次重构中弃用并使用Hooks替换之。具体如下:<React.StrictMode>
最后
欢迎大家在这里分享一下你们的使用案例,给我们一点创作灵感
有兴趣的话还可以做一个开箱即用的-pro案例
...
Component
toHooks
version...
The text was updated successfully, but these errors were encountered: