react-native-floating-label icon indicating copy to clipboard operation
react-native-floating-label copied to clipboard

Make sure that when we have a value, we also show the label

Open compojoom opened this issue 7 years ago • 4 comments
trafficstars

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

compojoom avatar Jan 15 '18 15:01 compojoom

@alvaromb - want to merge this?

compojoom avatar Apr 17 '18 15:04 compojoom

@compojoom scheduled for tomorrow! Sorry, busy as hell (as always :))

Want to join as a collaborator?

alvaromb avatar Apr 17 '18 15:04 alvaromb

Sure. I'm using this in our project, so happy to help where I can.

compojoom avatar Apr 17 '18 15:04 compojoom

@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.

compojoom avatar Apr 20 '18 11:04 compojoom