April 2017
Intermediate to advanced
414 pages
8h 14m
English
Next, I created an Android-specific version of App.js, renaming the original App.ios.js. Only two components are imported to App.android.js because any components being navigated to are handled in the root index.android.js file:
// Expenses/app/App.android.js
import React, { Component } from 'react';
import {
Text,
View
} from 'react-native';
import styles from './styles';
import * as dateMethods from './utils/dateMethods';
import * as storageMethods from './utils/storageMethods';
import AddExpenses from './components/AddExpenses';
import CurrentMonthExpenses from './components/CurrentMonthExpenses';
The state of the App component does not need a selectedTab property since we are not using tabbed navigation ...
Read now
Unlock full access