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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.