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 }) => void✕Is triggered on native SwiftUI event
styleViewStyle✕Style the root view

extends SwiftUIViewProperties