Declaration
import { Environment } from 'swiftui-react-native';@frozen @propertyWrapper struct Environment<Value>Initializers
One SwiftUI initializer backs <Environment>.
<Environment
keyPath: K
>
children: (value: SwiftUI.EnvironmentValuesReadable[K]) => ReactNode
</Environment>init(_ keyPath: KeyPath<EnvironmentValues, Value>)keyPath*KThe key to read.
children*(value: SwiftUI.EnvironmentValuesReadable[K]) => ReactNodeRenders the value, again whenever it changes.
Also takes the common view props: modifiers, style and testID.
See also
More in State and environment.