Skip to content

Instantly share code, notes, and snippets.

@ewanharris
Created June 29, 2018 15:12
Show Gist options
  • Save ewanharris/b17da3b1bb0e8eafc6f8668db9ec3505 to your computer and use it in GitHub Desktop.
Save ewanharris/b17da3b1bb0e8eafc6f8668db9ec3505 to your computer and use it in GitHub Desktop.
Require URI and ID issue on iOS
const json = require('./jsonfile.json');
console.log(json);
console.log(json.id);
const foo = require('./foo');
console.log(foo);
console.log(foo.id);
const win = Ti.UI.createWindow({
backgroundColor: 'white'
});
const textField = Ti.UI.createTextField({
borderStyle: Ti.UI.INPUT_BORDERSTYLE_BEZEL,
color: '#336699',
top: 10, left: 10,
width: 250, height: 60
});
win.add(textField);
win.open();
module.exports.id = 'clobbered';
module.exports.uri = 'also clobbered'
{
"id": "clobbered",
"uri": "also clobbered"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment