From c0980a5bf980f0f02d84b260625f6606468a54f3 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Mon, 20 Aug 2018 16:54:02 +0200 Subject: [PATCH] Move app component to components --- app.js => components/app.js | 26 ++++++++++---------------- index.js | 2 +- 2 files changed, 11 insertions(+), 17 deletions(-) rename app.js => components/app.js (65%) diff --git a/app.js b/components/app.js similarity index 65% rename from app.js rename to components/app.js index 7c2a14b..b0924aa 100644 --- a/app.js +++ b/components/app.js @@ -1,21 +1,15 @@ import React, { Component } from 'react' import { View, BackHandler } from 'react-native' -import Header from './components/header' -import Menu from './components/menu' -import Home from './components/home' -import Calendar from './components/calendar' -import CycleDay from './components/cycle-day/cycle-day-overview' -import symptomViews from './components/cycle-day/symptoms' -import Chart from './components/chart/chart' -import Settings from './components/settings' -import Stats from './components/stats' -import styles from './styles' -import {headerTitles as titles} from './components/labels' - -// this is until react native fixes this bugg, see -// https://github.com/facebook/react-native/issues/18868#issuecomment-382671739 -import { YellowBox } from 'react-native' -YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated']) +import Header from './header' +import Menu from './menu' +import Home from './home' +import Calendar from './calendar' +import CycleDay from './cycle-day/cycle-day-overview' +import symptomViews from './cycle-day/symptoms' +import Chart from './chart/chart' +import Settings from './settings' +import Stats from './stats' +import {headerTitles as titles} from './labels' const isSymptomView = name => Object.keys(symptomViews).indexOf(name) > -1 diff --git a/index.js b/index.js index 408a2f0..25e2616 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ import { AppRegistry } from 'react-native' -import App from './app' +import App from './components/app' AppRegistry.registerComponent('home', () => App) \ No newline at end of file