DEV Community

Use styled-components + ReactNative's FlatList in TypeScript

Kay Gosho on May 30, 2019

To use styled-components + FlatList, we have to write like this: interface User { id: number name: string } const StyledFlatList = styled(F...
Collapse
 
shotasenga profile image
Shota Senga

Thank you so much! This solution works on @emotion/native with this type definition as well!!

Collapse
 
acro5piano profile image
Kay Gosho

Thanks for the information!

Collapse
 
ribeirofilipe profile image
Filipe Ribeiro

Thank you bro, you help me a lot!

Collapse
 
acro5piano profile image
Kay Gosho

Thanks for your comment!

Collapse
 
ntvinhit profile image
Nguyễn Trọng Vĩnh

Thank you very much. I'm just stuck on this.

Collapse
 
dtesch9 profile image
Douglas Tesch

Thank you my friend!

Collapse
 
jvictorfarias profile image
Joao Victor Farias

Thank you! It helped me so much!

Collapse
 
acro5piano profile image
Kay Gosho

Thanks for your comment!

Collapse
 
gabrielfcs profile image
Gabriel Felipe

Thank you so much! I was already getting angry for not being able to put the types correctly 😅

Collapse
 
acro5piano profile image
Kay Gosho

Thank you for your feedback :)

Collapse
 
misaku profile image
Michel dos Santos Kuguio

thanks!

Collapse
 
acro5piano profile image
Kay Gosho

Thanks for your comment!

Collapse
 
marceloamorim profile image
Marcelo Amorim

Nice! Still working...