backgroundImage = “~/images/background.png” //does work
backgroundImage = “res://background.png” //does not work
I even tried:
const pageModule = require(“ui/page”);
pageModule.backgroundImage = ‘res://background.png’;
but that does not work either. I get an error that says the file cannot be found. Can anyone point me in the right direction?