title: React Native Render method syntax error wants a semicolon
body: <p>I am trying to use a simple function component to render a popup. I was following react-native-modul github page. <a href="https://github.com/react-native-community/react-native-modal" rel="nofollow noreferrer">https://github.com/react-native-community/react-native-modal</a></p>
  <p>For some reason I keep getting an error next to render() saying I need a ; when in all my other code it is set up the same way. Is something else causing this?<a href="https://i.stack.imgur.com/TI9Hv.png" rel="nofollow noreferrer">enter image description here</a></p>
  <pre><code>import React, {useState} from 'react';
  import {Button, Text, View} from 'react-native';
  import Modal from 'react-native-modal';
  
  function Popup() {
    const [isModalVisible, setModalVisible] = useState(false);
  
    const toggleModal = () =&gt; {
      setModalVisible(!isModalVisible);
    };
  
    render() {
      return (
        &lt;View style={{flex: 1}}&gt;
          &lt;Button title=&quot;Show modal&quot; onPress={toggleModal} /&gt;
  
          &lt;Modal isVisible={isModalVisible}&gt;
            &lt;View style={{flex: 1}}&gt;
              &lt;Text&gt;Hello!&lt;/Text&gt;
  
              &lt;Button title=&quot;Hide modal&quot; onPress={toggleModal} /&gt;
            &lt;/View&gt;
          &lt;/Modal&gt;
        &lt;/View&gt;
      );
    }
  }
  
  export default Popup;
  </code></pre>