Color
A representation of a color that adapts to a given context.
Example​
- swiftui-react-native
- SwiftUI
<Color.red frame={{ width: 100, height: 100 }} />
Color.red
.frame(width: 100, height: 100)
Supported Colors:
Color.blackColor.blueColor.brownColor.clearColor.cyanColor.grayColor.greenColor.indigoColor.mintColor.orangeColor.pinkColor.purpleColor.redColor.tealColor.yellowColor.accentColorColor.primaryColor.secondaryColor.white
Props​
Color inherits all View Modifiers as props.
| prop | description | type | required | default |
|---|---|---|---|---|
color | The color value | Color | no | undefined |