S
S
Sergey Zolotarev2021-08-31 15:50:03
typescript
Sergey Zolotarev, 2021-08-31 15:50:03

What is the correct way to assign a variable to NamedStyles?

Good evening!
I'm still facing a solution to this problem that the compiler brought up:


The type 'Style' does not satisfy the constraint 'NamedStyles | NamedStyles

What did I do wrong? How to solve it very precisely so that it works (and implemented it with the help of an answer on Stackoverflow and the code itself is available in the comments)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question