Skip to content

Commit c65a502

Browse files
authored
fix: pass initial props for SwiftUI views (#122)
1 parent 453f965 commit c65a502

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/ReactNativeView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ struct ReactNativeViewRepresentable: UIViewControllerRepresentable {
88
var initialProperties: [String: Any] = [:]
99

1010
func makeUIViewController(context: Context) -> UIViewController {
11-
return ReactNativeViewController(moduleName: moduleName)
11+
return ReactNativeViewController(
12+
moduleName: moduleName,
13+
initialProperties: initialProperties
14+
)
1215
}
1316

1417
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}

0 commit comments

Comments
 (0)