react-native怎么使用css的border-radius四个复合属性?

像这样的一个属性,能不能在rn中拆分成对应值?

width: 50px;
height: 50px;
border-radius: 80% 0 55% 0 / 55% 0 80% 0;

我试了我写成下面这样不对,我感觉实现不了。

borderTopLeftRadius: width*0.8/width*0.55,
borderTopRightRadius: 0,
borderBottomLeftRadius: width*0.55/width*0.8,
borderBottomRightRadius: width*0.5/width*0.5,
阅读 3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题