• Amministratore
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

import from cause black screen

Topics related to the creation, development, and designing of the watch faces.

Moderatori: asoo, Watchmens

Regole del forum
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [Falcon]
All communication in this branch should only be in English.
Rispondi
Dimitry
Messaggi: 1
Iscritto il: 27 dic 2024, 17:52
Località: London
Contatta:

import from cause black screen

Messaggio da Dimitry »

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
Rispondi

Torna a “Watchfaces discussion”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite