Check out example codes for "did select row at". It will help you in understanding the concepts better.

Code Example 1

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let selectedRow = toDo[indexPath.row]
        performSegue(withIdentifier: "segueTwo", sender: selectedRow)
    }

Learn ReactJs, React Native from akashmittal.com