stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Is there a max height for CardForm?

Open gabriellend opened this issue 3 years ago • 1 comments

Hello!

I've been playing around with style for a bit on CardForm and it seems like it has a max height that it won't go over. Seems to be around 175 on iOS and 275 on Android. Doesn't seem to change if I change the width. If I add a background color to style, I can see that height seems to mostly be changing something behind the card, while still having some effect on the card itself. While I would like the card to be taller on certain screen sizes, it works ok. Just clarifying I didn't miss something. It is wrapped by some Views that have flex: 1 and flex: 3 set but even when I take those away, the height won't increase visually beyond these numbers.

Below are some screen shots. As you can see, the style attribute makes the pink background grow and the card itself grows with it, but only up to about 175:

Height of 100 on iOS

Screen Shot 2022-07-28 at 12 43 14 PM Height of 175 on iOS Screen Shot 2022-07-28 at 12 44 21 PM Height of 200 on iOS Screen Shot 2022-07-28 at 12 45 28 PM

As a related question, would it be possible to do something like this with PaymentSheet? I couldn't tell from the documentation. Screen Shot 2022-07-27 at 11 35 25 AM

Many thanks for any insight!

gabriellend avatar Jul 28 '22 23:07 gabriellend

Any update on this ?

MensurRasic avatar Oct 31 '23 04:10 MensurRasic