SrBrahma / react-native-gev

MIT License
3 stars 1 forks source link

Add label and subLabel to Button #9

Open SrBrahma opened 2 years ago

SrBrahma commented 2 years ago

Usage example:

image

SrBrahma commented 2 years ago

It conflicts with the current implementation.

containerStyle is set into Button's component. We would need to move the containerStyle to an outer View, and we would need a new style for the Shadow.

In theory we could leave the Label and SubLabel outside the containerStyle influence, but it sounds pretty bad. Seems expected that container contains everything the component has.

TextInputFormal has label and sublabel under containerStyle:

image

Leaving it open to remind me of this.