Skip to main content

RootView

Creates a Swift UI View in which Swift UI Components defined as children can be used.

Preview

no preview available

Example Usage

 <RNSwiftUI.RootView
reactViews={[
<Text>Hello World</Text>
]}>

{"components of this libary here"}

<RNSwiftUI.RootView/>

Props

nametyperequireddescription
reactViewsReact.ReactNode[]Array of react views that should be available in Swift UI
onSwiftUIEvent(event: { nativeEvent: SwiftUiEvent }) => voidIs triggered on native SwiftUI event
styleViewStyleStyle the root view

extends SwiftUIViewProperties