title: React-Native Constructor
body: <p>Please help me find what is wrong in the following React-Native code?</p>
  
  <p>It says after constructor (props) should have ';' semicolon. I don't know if I declared it in the right way.</p>
  
  <pre><code>import React from 'react';
  import { StyleSheet, TextInput, View } from 'react-native';
  
  export default function App() {
    constructor (props){
      this.state = {
        text: 'HI'
      }
    }
    render () {
    return (
      &lt;View style={styles.container}&gt;
        &lt;TextInput style={styles.input}
        placeholder = 'Enter Value...'
        placeholderTextColor ='#E74292'
        onChangeText = {(text) =&gt; {
          this.setState({text})
        }}
        /&gt;
      &lt;/View&gt;
    );
  }
  const styles = StyleSheet.create({
    container:{
      flex:1,
      backgroundColor:'#F4C724',
  
    },
    input :{
  marginTop:30,
  height:30,
  width:30,
  borderWidth:2,
  padding:10,
  borderRadius: 5,
  borderColor:'#1287A5'
    }
  }
  );
  </code></pre>