Some SF Symbols alter their appearance based on a variable value. Use the variableValue prop with a value between 0.0 and 1.0 to control the rendered symbol. Requires iOS 16.0+ and SF Symbols 4.0+.
Apply an SF Symbol effect to animate the symbol by passing a symbolEffect modifier from @expo/ui/swift-ui/modifiers. This effect runs continuously by default. You can also pass value for a discrete trigger that fires once per change, or isActive for a boolean toggle that runs the effect while true. Requires iOS 17.0 and later.
The color of the system image.
Can be a color name like '#ff00ff', 'red', 'blue', etc.
onPress
iOS
tvOS
Optional • Type: () => void
Callback triggered when the view is pressed.
size
iOS
tvOS
Optional • Type: number
The fixed size of the system image in points. Does not scale with Dynamic
Type. Use the font modifier with textStyle for that. Ignored when a
font modifier is supplied.
The name of the system image (SF Symbol).
For example: 'photo', 'heart.fill', 'star.circle'
uiImage
iOS
tvOS
Optional • Type: string
The URI of the local image file to display.
For example: 'file:///path/to/image.jpg'
Performs a synchronous read operation that blocks the main thread.
variableValue
iOS16.0+
tvOS16.0+
Optional • Type: number
The variable value that alters the symbol's appearance.
A number between 0.0 and 1.0.
Only works with SF Symbols that support variable values (SF Symbols 4.0+).