title: bundling error: syntax error Unexpected token while using React-native-android-wifi
body: <p>I'm a beginner in react-native and want to manage the wifi in my android device. Basically, I want to ask permission to turn on wifi, show the wifi-list and disconnect the wifi, so I followed this tutorial: </p>
  
  <ul>
  <li><a href="https://www.botreetechnologies.com/blog/react-native-manage-wifi-android" rel="nofollow noreferrer">https://www.botreetechnologies.com/blog/react-native-manage-wifi-android</a></li>
  </ul>
  
  <p>The code for asking permission below</p>
  
  <pre><code>import React, { Component } from 'react';
  import { Platform, StyleSheet, Text, View } from 'react-native';
  
  var wifi = require('react-native-android-wifi');
  
  export default class App extends Component {
  
    wifi.isEnabled((isEnabled) =&gt; {
      if (isEnabled) {
        console.log("wifi service enabled");
      } else {
        console.log("wifi service is disabled");
      }
    });
  
    render() {
      return (
        &lt;View style={styles.container}&gt;
          &lt;Text&gt;Welcome to React Native!&lt;/Text&gt;
          &lt;Text&gt;To get started, edit App.js&lt;/Text&gt;
        &lt;/View&gt;
      );
    }
  }
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      justifyContent: 'center',
      alignItems: 'center',
      backgroundColor: '#F5FCFF',
    },
  });
  </code></pre>
  
  <p>I got this error:</p>
  
  <ul>
  <li><a href="https://i.stack.imgur.com/gQsTI.png" rel="nofollow noreferrer">it says unexpected token and I have no idea about the error.</a></li>
  </ul>
  
  <p>Could someone please help me out, why am I getting the error and what should I do?</p>