Using Navigator

In this section, we're going to add a simple introduction screen to our application that is presented to the user before the news feed. When they tap the screen, it will navigate to the home screen that we currently have in the application, as shown in the following screenshot:

Using Navigator

The first thing we'll do is create a simple new component for this intro screen in a new src/components/IntroScreen.js file:

import React, { PropTypes } from 'react'; import { View, TouchableOpacity, StatusBar, StyleSheet } from 'react-native'; import Title from './Title'; import AppText from './AppText'; import * as globalStyles from '../styles/global'; // ...

Get Mastering React Native now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.