Skip to content

Commit 1523aea

Browse files
authored
fix(iOS): Present the component immediately if there's only one (#105)
1 parent b0a17a5 commit 1523aea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/ReactTestApp/ContentView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ final class ContentViewController: UITableViewController {
5656
guard let strongSelf = self else {
5757
return
5858
}
59+
60+
if components.count == 1, let component = components.first {
61+
strongSelf.navigate(to: component)
62+
}
63+
5964
strongSelf.sections[0].items = items
6065
strongSelf.tableView.reloadData()
6166
}

0 commit comments

Comments
 (0)