Check out example codes for "dequeueReusableCellWithIdentifier returns nil". It will help you in understanding the concepts better.

Code Example 1

// You need to register the cell types with the tableview before it will return them
// Use either one of these depending on your setup

tableView.register(MyTableViewCell.self, forCellReuseIdentifier: "CellID1")
tableView.register(UINib(nibName: "yourNibName", bundle: nil), forCellReuseIdentifier: "CellID2")

Learn ReactJs, React Native from akashmittal.com