Skip to content

Commit 6aa567f

Browse files
authored
Fix the build error in the example code (facebook#4355)
1 parent f44a575 commit 6aa567f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/_integration-with-existing-apps-ios.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,11 @@ class ViewController: UIViewController {
467467
+ button.setTitleColor(.systemBlue, for: .normal)
468468
+ button.setTitleColor(.blue, for: .highlighted)
469469
+ button.addAction(UIAction { [weak self] _ in
470+
+ guard let self else { return }
470471
+ if reactViewController == nil {
471472
+ reactViewController = ReactViewController()
472473
+ }
473-
+ self?.present(reactViewController, animated: true)
474+
+ present(reactViewController!, animated: true)
474475
+ }, for: .touchUpInside)
475476
+ self.view.addSubview(button)
476477
+

0 commit comments

Comments
 (0)