Declaration
import { ScaledMetric } from 'swiftui-react-native';@propertyWrapper struct ScaledMetric<Value> where Value : BinaryFloatingPointInitializers
2 SwiftUI initializers back <ScaledMetric>. The props you pass pick one.
<ScaledMetric
wrappedValue: number
>
children: (value: number) => ReactNode
</ScaledMetric>init(wrappedValue: Value)children*(value: number) => ReactNodeRenders the value, again whenever it changes.
wrappedValue*number
Also takes the common view props: modifiers, style and testID.
See also
More in State and environment.
- AppStorageA property wrapper type that reflects a value from UserDefaults and invalidates a view on a change in value in that user default.
- EnvironmentA property wrapper that reads a value from a view's environment.
- SceneStorageA property wrapper type that reads and writes to persisted, per-scene storage.