I am using react native. I need to define a class:
class myClass {
email: string;
name: string;
constructor() {
setUser(fbid: string, token: string): boolean {
I am trying to define it in its own file myClass.js and when I include it in my index.ios.js , I get this error:
Can't find variable: myClass
Can you please point me to any documentation on how to define non react classes and use them in react native ? Thank you for reading.
Custom objectssection : developer.mozilla.org/en-US/docs/Web/JavaScript/…