Expo UI Shape matches the official Jetpack Compose Shapes API and provides a set of sub-components for drawing geometric shapes such as stars, circles, rectangles, pills, and polygons.
Corner radii for RoundedCorner shape. Values are in dp.
cornerRounding
Android
Optional • Type: number • Default: 0.0
Corner rounding percentage. Multiplied by the shorter dimension of the view to produce pixel values.
innerRadius
Android
Optional • Type: number • Default: 1.0
Inner radius of star-related shapes ('STAR' and 'PILL_STAR'). Multiplied by the shorter dimension of the view to produce pixel values.
modifiers
Android
Optional • Type: ModifierConfig[]
Modifiers for the component.
radius
Android
Optional • Type: number • Default: 1.0
Radius of the circular shape. Multiplied by the shorter dimension of the view to produce pixel values.
smoothing
Android
Optional • Type: number • Default: 0.0
Number between 0.0 and 1.0 that determines how much each line between vertices is "smoothed".
verticesCount
Android
Optional • Type: number • Default: 6.0
Number of vertices. For 'POLYGON' it must be at least 3.0. For 'STAR' and 'PILL_STAR' it is a number of vertices for each of two radii (A 5-pointed star has 10 vertices.)