title: Looks like hoisting is working in React Native with const
body: <p>I noticed one interesting thing in react native. I thought that const and let does not support hoisting in ES6.
  How is it possible to use const <strong>styles</strong> above its define?</p>
  
  <pre><code>    render() {
          const { repos } = this.state;
          const reposList = repos.map((rep, index) =&gt; {
              return (
                      &lt;Text&gt;{rep.name}&lt;/Text&gt;
              )
          });
  
          return (
                  &lt;View style={styles.container}&gt;  &lt;-- styles should not be defined
                      {reposList}
                  &lt;/View&gt;
          );
      }
  }
  
  const styles = StyleSheet.create({
      container: {
          flex: 1,
          justifyContent: 'center',
          alignItems: 'center',
          backgroundColor: '#F5FCFF',
      },
      welcome: {
          fontSize: 20,
          textAlign: 'center',
          margin: 10,
      },
      instructions: {
          textAlign: 'center',
          color: '#333333',
          marginBottom: 5,
      },
  });
  </code></pre>
  
  <p>Is it because of hoisting mechanism in React Native?</p>