import from cause black screen
Posted: 30 Dec 2024, 14:49
Hello everyone,
I'm trying to create my first watchface.
I can display a first one with a background and pointers.
For reasons of code reading, I created a styles.js file in the index.js directory to define elements.
But if I try to do:
import Colors from "./styles";
after downloading my watch screen remains black.
If I copy the Colors structure into the index.js file I have no problems.
It's really the import that makes everything crash. Does anyone have an idea why?
Thanks in advance
I'm trying to create my first watchface.
I can display a first one with a background and pointers.
For reasons of code reading, I created a styles.js file in the index.js directory to define elements.
But if I try to do:
import Colors from "./styles";
after downloading my watch screen remains black.
If I copy the Colors structure into the index.js file I have no problems.
It's really the import that makes everything crash. Does anyone have an idea why?
Thanks in advance