How to do it...

Since RN uses its own components, your HTML experience will be of little use. Here, we'll see some changes, but in order to derive the full benefits of all of RN's possibilities, you'll have to study its components on your own. Let's start with the <RegionsTable> component, which was rather simple. We saw its original code in the Defining Components section of Chapter 6, Developing with React; here, let's focus on the differences, which are all constrained to the render() method. Earlier, we use <div> tags and displayed texts in them; here, with RN, we're required to use the <View> and <Text> elements:

// Source file: src/regionsApp/regionsTable.component.js...render() {    if (this.props.list.length === 0) {        return ( <View> ...

Get Modern JavaScript Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.