title: How to declare model class in react native and pass whole model class in second screen by use of react navigation
body: <p>Is proper way to declare model class like java and how to pass this into second screen in react native?</p>
  
  <pre><code>export default class UserModel {
  
      stateName;
      username;
      email;
      mobile;
      gender;
      address;
  
      constructor() {}
  
      setStateName(stateName) {
          this.stateName = stateName;
      }
      setUserName(username) {
          this.username = username;
      }
  
      setEmail(email) {
          this.email = email;
      }
  
      setMobile(mobile) {
          this.mobile = mobile;
      }
  
      setGender(gender) {
          this.gender = gender;
      }
  
      setAddress(address) {
          this.address = address;
      }
  }
  </code></pre>