title: Unused default export - React Native
body: <p>I am trying to export my main component in the <code>App.js</code> file, but 'export default' in the line </p>
  
  <blockquote>
    <p>"export default class App extends Component"</p>
  </blockquote>
  
  <p>comes up unused. This is the only export default statement in the project. When I try running the project it crashes. I've posted the source code to my app.js below</p>
  
  <p>More info: I'm using WebStorm to build this app and it's telling me the 'export default' statement is unused. When I run the app I get no errors but it crashes as soon as it is opened.</p>
  
  <p>Can someone tell me what is wrong here or how to fix this issue?</p>
  
  <pre><code>import React, {Component} from 'react';
  import { StyleSheet, Text, View, ScrollView } from 'react-native';
  import {LogCell} from './LogCell.js';
  import {Header} from 'react-native-elements';
  
  export default class App extends Component {
      render() {
          return (
              &lt;View style={styles.container}&gt;
                  &lt;Header
                      placement="left"
                      leftComponent={{ icon: 'date-range', color: 'white', size: 30}}
                      centerComponent={{ text: 'Feb 2', style: { color: 'white', fontSize: 20} }}
                      rightComponent={{ icon: 'edit', color: 'white', size: 30}}
                      backgroundColor={"rgb(0, 100, 250)"}
                  /&gt;
                  &lt;ScrollView style={{width: '100%', paddingLeft: '5%', paddingRight: '5%', paddingBottom: '5%'}}&gt;
                      &lt;LogCell&gt;&lt;/LogCell&gt;
                      &lt;LogCell&gt;&lt;/LogCell&gt;
                      &lt;LogCell&gt;&lt;/LogCell&gt;
                  &lt;/ScrollView&gt;
              &lt;/View&gt;
          );
      }
  }
  
  const styles = StyleSheet.create({
      container: {
          flex: 1,
          backgroundColor: '#fff',
          alignItems: 'center',
          // justifyContent: 'center',,
      },
  });
  </code></pre>