RoundedRectangle
A rectangular shape view with rounded corners.
Example​
- swiftui-react-native
- SwiftUI
- React Native
<RoundedRectangle fill="red" frame={{ width: 100, height: 150 }} />
RoundedRectangle()
.fill(Color.red)
.frame(width: 100, height: 150)
<View
style={{ width: 100, height: 150, backgroundColor: 'red', borderRadius: 10 }}
/>
Props​
RoundedRectangle inherits all View Modifiers as props.