title: React native giving Error when I add constructor(props)
body: <p>I am getting the following error when I add constructor(props) . What is this error and how can I fix this. Is is because of <code>export default function LoginForm({navigation}){</code></p>
  <p>The codes are here:</p>
  <pre><code>import React, { useState, useEffect, Component } from 'react';
  import { StyleSheet, View, Text,TouchableOpacity,TextInput, ActivityIndicator,Linking } from 'react-native';
  import { LinearGradient } from 'expo-linear-gradient';
  import { MaterialIcons } from '@expo/vector-icons';
  
  import { sliderStyle } from '../styles/slider';
  import { render } from 'react-dom';
  
  export default function LoginForm({ navigation }){ 
       
       constructor(props){
          super(props)
          this.state={
              
          }
       }
  
  
      const pressHandler = () =&gt; {
          navigation.goBack();
      }
       
   
      return (
         &lt;View style={sliderStyle.LoginPageContainer}&gt;
            &lt;Text&gt;Hello React Native!&lt;/Text&gt;
         &lt;/View&gt;      
      );
  } 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Pp6ao.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pp6ao.png" alt="enter image description here" /></a></p>