title: How to create an object in react native?
body: <p>I just started learning react native and I am having issues with creating an object. Here is the code </p>
  
  <pre><code>import React, { Component } from 'react';
  import {
    View,
    Text,
    StyleSheet,
  } from 'react-native';
  
  export default class object {
      name: 'joe'
      age: 27
      country: 'France'
  }
  </code></pre>
  
  <p>And when I try to instantiate it in another class like this</p>
  
  <pre><code> import React, { Component } from 'react';
      import {
        View,
        Text,
        StyleSheet,
      } from 'react-native';
  
      import object from './object.js'
  
      export default class MyComponent extends Component {
  
        var man = new Object();
  
        render() {
          return (
            &lt;View style={styles.container}&gt;
              &lt;Text&gt;{man.age}&lt;/Text&gt;
            &lt;/View&gt;
          );
        }
      }
  
      const styles = StyleSheet.create({
        container: {
          flex: 1,
        },
      })
  </code></pre>
  
  <p>I get a syntax error Unexpected token var ->man = new Object(). How do I fix this?</p>