halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

Use with styled-components #101

Closed someonesatan closed 4 years ago

someonesatan commented 5 years ago

I tried to pass styled component as style or labelStyle props, but it didn't work.

Is it possible?

halilb commented 5 years ago

Hi @someonesatan,

I'm not aware of the issue as I haven't used styled-components before. I believe it basically generates and passes a style object though, so it should have worked. Some style properties are ignored or overridden by this library. So that might be the problem here.

Could you try passing style object without styled-components to see if that works? And please send me an example snippet with/without styled-components so I can check the problem.

halilb commented 4 years ago

Closing due to inactivity.