11.5.1 or newer TypeScript issue with styled components
See original GitHub issueVersions
- react-native-modal: 11.5.1 or newer
- react-native: 0.61.5
- react: 16.12.0
- styled-components: 4.4.1
Description
I see in change log was add TypeScript support. I use styled components and started get next error here:
const StyledModal = styled(Modal)`
margin: 0;
`;
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
11.5.1 or newer TypeScript issue with styled components #381
Description. I see in change log was add TypeScript support. I use styled components and started get next error here: const StyledModal =...
Read more >Typescript and styled-components gives error on import
Styled Components library does not ship with types. Instead, you'll need to install it from the Definitely Typed repository.
Read more >Styled Components in React and TypeScript | by Michael Gold
This article will run through an example of using the styled-components feature in React in order to style your React components with css....
Read more >types/styled-components - npm
Summary. This package contains type definitions for styled-components (https://github.com/styled-components/styled-components).
Read more >Styled Components & TypeScript - | The Mindless
Styled Components happens to be one of my favorite CSS in JS libraries all time and have been part of almost all of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround for now (the styles are applying to the Modal):
This error should be fix tho as it might introduce some bugs
still on