question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript errors?

See original GitHub issue

Getting this everywhere I use the styles.

[ts]
Type 'RegisteredStyle<ViewStyle | TextStyle | ImageStyle | StringifiedStyles>' is not assignable to type 'StyleProp<ViewStyle>'.
  Type 'RegisteredStyle<ViewStyle | TextStyle | ImageStyle | StringifiedStyles>' is not assignable to type 'RecursiveArray<false | ViewStyle | RegisteredStyle<ViewStyle> | null | undefined>'. [2322]
index.d.ts(2028, 5): The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<View> & Readonly<{ children?: ReactNode; }> & Readonly<ViewProps>'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
nirskycommented, Dec 26, 2018

@deklanw - Just released version 0.1.6. I think this time I got it! Please confirm 😃

1reaction
deklanwcommented, Dec 28, 2018

Seems good now.

Thank you for your work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Understanding Errors
Whenever TypeScript finds an error, it tries to explain what went wrong in as much detail as possible. Because its type system is...
Read more >
TypeScript errors and how to fix them
TypeScript errors and how to fix them. Common Errors. Below you find a list of common TypeScript errors along with the buggy code...
Read more >
Interpreting Errors - TypeScript Deep Dive
Since TypeScript is a heavily focused Developer Help oriented programming language, its errors messages try to be super helpful when something goes wrong....
Read more >
Understanding TypeScript Errors for Beginners
A pretty common issue that new TypeScript developers encounter in a TypeScript based project is the “Could not find declaration file for module…...
Read more >
Common TypeScript errors and how to fix them
Finding and reading TypeScript errors · Handling falsy variables · Something is not a string · Incorrect inference from JavaScript · Using Array....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found