react-native-floating-label
react-native-floating-label copied to clipboard
Make sure that when we have a value, we also show the label
When a user loads a form in our application it's by default empty. However we have a "favorites" feature - the user clicks on previous values and the form is pre-populated with data. This works, but the label was missing as it's set in the constructor to 0 when we don't have a value.
In this pull request I'm comparing the next props and if it has a value I'm setting fadeAnim to true
@alvaromb - want to merge this?
@compojoom scheduled for tomorrow! Sorry, busy as hell (as always :))
Want to join as a collaborator?
Sure. I'm using this in our project, so happy to help where I can.
@alvaromb turned out that when having a 0 value the component was not behaving properly and was not showing the label on top. fixed this in the last commit as well.