We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如下图提示
IconZhuye.defaultProps = { size: 18, };
这样的写法,是否可以改成这样呢
FunctionComponent = ({size = 18, color, ...rest})
The text was updated successfully, but these errors were encountered:
I also meet this error message
Sorry, something went wrong.
可以在node_modules/react-native-iconfont-cli/templates 文件夹中修改模板
注释或删除代码块 //#componentName#.defaultProps = { // size: #size#, //}; #size#属性添加至 let #componentName#: FunctionComponent<Props> = ({ size=#size#, color, ...rest }) => { ...
//#componentName#.defaultProps = { // size: #size#, //};
let #componentName#: FunctionComponent<Props> = ({ size=#size#, color, ...rest }) => { ...
No branches or pull requests
如下图提示
IconZhuye.defaultProps = {
size: 18,
};
这样的写法,是否可以改成这样呢
FunctionComponent = ({size = 18, color, ...rest})
The text was updated successfully, but these errors were encountered: