如何在react-native中为backgroundColor设置两个rgb颜色代码

问题描述 投票:0回答:1

我需要在我的应用中设置两个rgb颜色代码。如何在react-native中给出两种背景颜色组合]

color:{
   backgroundColor: 'rgb 00 d0 njd', 'rgb 0090 j099'
}

我需要在我的应用中设置两个rgb颜色代码。如何提供反应色中的两种背景色组合:{backgroundColor:'rgb 00 d0 njd','rgb 0090 j099'}

react-native stylesheet
1个回答
0
投票

是的!您可以使用Gradient

© www.soinside.com 2019 - 2024. All rights reserved.