I have a typescript:
export const create= () => {
export const Size = 5;
export const now = () => {
const bytes = new Uint8Array(this.Size);
}
}
The code runs fine in node.js application, but when I try to use it in react-native, I get:
Cannot read property 'Size' of undefined
Obviously when converted to javascript to be used in react-native:
exports.Size = 5;