You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Use the `ReactNativeHostManager.loadView` to present the UI
152
+
3. Use the `ReactNativeView` or `ReactNativeViewController` to present the UI
149
153
150
-
```
151
-
let RNView = ReactNativeHostManager.shared.loadView(moduleName: "ExpoRNApp", initialProps: nil, launchOptions: nil)
154
+
```swift
155
+
ReactNativeView(moduleName: "ExpoRNApp")
156
+
.background(Color(UIColor.systemBackground))
152
157
```
153
158
154
-
> This returns a UIView, so if you're using SwiftUI, you will have to wrap this in UIViewRrepresentable .
155
-
You can see the demo integration in [Apple App](https://github.com/callstack/react-native-brownfield/blob/main/apps/AppleApp/Brownfield%20Apple%20App/BrownfieldAppleApp.swift) as well
159
+
> You can also use `ReactNativeBrownfield.shared.view(moduleName, initialProps)` which returns a UIView.
0 commit comments