Created
September 30, 2024 14:18
-
-
Save okwasniewski/16c5b09eae29947394098f1d4bbebc7e to your computer and use it in GitHub Desktop.
ReactNativeView.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ReactNativeView: UIViewRepresentable { | |
var moduleName: String | |
var rootViewFactory: RCTRootViewFactory | |
func makeUIView(context: Context) -> UIView { | |
return rootViewFactory.view(withModuleName: moduleName) | |
} | |
func updateUIView(_ uiView: UIView, context: Context) { | |
// noop | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment