Answer the question
In order to leave comments, you need to log in
Incorrect props types for React native styled components?
When creating a styled component, it has incorrect prop types:
And if you add a type when creating StyledList :
But just FlatList works correctly:
React: 16.9.0
React Native: 0.61.5
Styled Components: 4.4.1
@types/Styled Components: 4.4.1
Answer the question
In order to leave comments, you need to log in
I think you need to define the type of props for the Test component:
export default class Test extends React.Component<{ item: Data }>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question