RootView
Creates a Swift UI View in which Swift UI Components defined as children can be used.
Preview
Example Usage
<RNSwiftUI.RootView
reactViews={[
<Text>Hello World</Text>
]}>
{"components of this libary here"}
<RNSwiftUI.RootView/>
Props
| name | type | required | description |
|---|---|---|---|
| reactViews | React.ReactNode[] | ✕ | Array of react views that should be available in Swift UI |
| onSwiftUIEvent | (event: { nativeEvent: SwiftUiEvent }) => void | ✕ | Is triggered on native SwiftUI event |
| style | ViewStyle | ✕ | Style the root view |
extends
SwiftUIViewProperties