title: i18n React-Native unexpected token ';'
body: <p>I have I18n set up in an IOS project and am working in an Android project now. </p>
  
  <p>I keep getting an unexpected token ';' error. </p>
  
  <p>When I comment out the import statement for strings and the static navigationOptions the error goes away and the build succeeds:</p>
  
  <pre><code>import React, { Component } from 'react';
  import {
    View,
    Text,
    StyleSheet,
    ImageBackgroud,
    // TextInput
  } from 'react-native';
  // import {
  //   Button
  // } from 'react-native-elements';
  // import {
  //   Spinner
  // } from '../components/common';
  
  here --&gt; //import { strings } from '../locales/i18n';
  
  class SignUp extends Component {
  
    //static navigationOptions = {
   here --&gt;// title: strings('SignUp.title')
    //}
  
    constructor(props) {
      super(props);
      this.state = {
        email: '',
        password: '',
        loading: false
      };
    }
  
    render() {
     return (
        &lt;ImageBackgroud
          source={require('.././assets/swooshResize.jpg')}
          style={styles.backG}
        &gt;
          &lt;View&gt;
            &lt;Text&gt;
             HELLO!
            &lt;/Text&gt;
          &lt;/View&gt;
        &lt;/ImageBackgroud&gt;
      );
    }
  
  }
  
  const styles = StyleSheet.create({
    backG: {
       width: '100%',
       height: '100%'
    },
  });
  
  export default SignUp;
  </code></pre>
  
  <p>This is the locales file i18n.js:</p>
  
  <pre><code>import I18n from 'react-native-i18n';
  import en from './en.json';
  import fr from './fr.json';
  import es from './es.json';
  
  I18n.fallbacks = true;
  
  I18n.translations = {
    en, 
    fr,
    es
  };
  
  // RTL language support
  // export const isRTL = currentLocale.indexOf('he') === 0 || 
  currentLocale.indexOf('ar') === 0;
  
  // Allow RTL alignment in RTL languages
  // ReactNative.I18nManager.allowRTL(isRTL);
  
  export function strings(name, params = {}) {
    return I18n.t(name, params);
  }
  
  export default I18n;
  </code></pre>
  
  <p>And this is the JSON for english: </p>
  
  <pre><code>{
    "SignUp": {
      "title": "Sign Up"
    }
  }
  </code></pre>
  
  <p>Entire Error Message:</p>
  
  <p>Unexpected token ';' (<a href="http://10.0.2.2:8081/index.delta" rel="nofollow noreferrer">http://10.0.2.2:8081/index.delta</a>? 
     platform=android&amp;dev=true&amp;minify=false:112892)</p>
  
  <p>Unexpected token ';' (<a href="http://10.0.2.2:8081/index.delta" rel="nofollow noreferrer">http://10.0.2.2:8081/index.delta</a>? 
     platform=android&amp;dev=true&amp;minify=false:112892)</p>
  
  <p>I had this working in an IOS build and then noticed react-native i18n updated to 2.0.15 and now I get this weird error. Any help would be greatly appreciated also I did change it to the documentation specs and it still had an error. eslint in running.</p>
  
  <p>Maybe a fresh set of eyes will help.</p>
  
  <p>Thank you for taking the time to look at this post</p>