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.

Start to get a message for the wrong type for LinearGradientProps

See original GitHub issue

Question

Hello there, starting from today after updating these packages:

image

I’ve started to get this message

Type '{ children: Element[]; id: string; x1: string; y1: string; x2: string; y2: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<LinearGradientProps, any, any>> & Readonly<...>'.
  Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<LinearGradientProps, any, any>> & Readonly<...>'.ts(2322)

for every code block, even if I use the example code provided by docs. what happens?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SamuelAbipcommented, Aug 2, 2022

@WoLewicki looks like it is fixed! Thanks!

0reactions
WoLewickicommented, Jul 26, 2022

@SamuelAbip can you check if it is fixed in new released v12.4.2 version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

to get a message for the wrong type for LinearGradientProps ...
Question Hello there, starting from today after updating these packages: I've started to get this message Type '{ children: Element[]; ...
Read more >
Failing to alias react-native-linear-gradient to ... - Stack Overflow
by webpack when building the web app. However I am still getting the same error, like its not using the alias. What do...
Read more >
LinearGradient - Expo Documentation
Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.
Read more >
react-native-linear-gradient - npm
Invariant Violation: Element type is invalid. Ensure you import the LinearGradient correctly: // Like that: import LinearGradient from ' ...
Read more >
react-native-linear-gradient - Bountysource
Hi,. When i pass style props in LinearGradient component, i see typescript is highlighted props error. Later i found that LinearGradientProps does not...
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