Created
June 29, 2018 15:12
-
-
Save ewanharris/b17da3b1bb0e8eafc6f8668db9ec3505 to your computer and use it in GitHub Desktop.
Require URI and ID issue on iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.id = 'clobbered'; | |
module.exports.uri = 'also clobbered' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "clobbered", | |
"uri": "also clobbered" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment