#PERF-known-bugs

1 messages ยท Page 1 of 1 (latest)

rain yoke
#

That's a bit of a nebulous question. Are you seeing something specific happen? If so, how can we reproduce it?

primal violet
#

sorry! we meet again @rain yoke haha

This seems to only be an issue on Android

when running the following I see this on the simulator on android.

await initPaymentSheet({
          appearance: {
            colors: {
              primary: "#f13665"
            }
          },
          customFlow: true,
          merchantDisplayName: MERCHANT_DISPLAY_NAME,
          customerId: customerID,
          customerEphemeralKeySecret: ephemeralKey,
          setupIntentClientSecret: setupIntentKey,
        });
#

however when running i see this

await initPaymentSheet({
          appearance: {
            colors: {
              primary: "#f13665"
            }
          },
 //         customFlow: true,
          merchantDisplayName: MERCHANT_DISPLAY_NAME,
          customerId: customerID,
          customerEphemeralKeySecret: ephemeralKey,
          setupIntentClientSecret: setupIntentKey,
        });
rain yoke
#

Hmm, let me check

solid python
#

๐Ÿ‘‹

#

What version of our React Native SDK are you using?

primal violet
#
    "@stripe/stripe-react-native": "^0.15.0",
solid python
#

Thanks.

#

I'm not aware this should be the case so attempting to repro myself.

#

Give me a moment

primal violet
#

ok

solid python
#

Hmm so mine seems to be fine:

#

I'm seeing the Pink outline in the custom flow on Android as expected

#

I'm not seeing any differing behavior between iOS and Android here

primal violet
#

was that after a hard refresh of the app?

#

aka kill it and reopen

solid python
#

Wow okay now I do see that

#

Good call

#

Really interesting because after I toggle custom flow off the appearance does seem to be cached

#

So you can only repro the initial time after a hard reset

#

I'm assuming you haven't tested this on a real device, correct?

#

Can you also confirm what emulator device you are using?

primal violet
#

Cache issue?

solid python
#

Well the emulator is pulling the correct appearance API from somewhere.

#

Can you:

  1. comment out the custom flow
  2. reload your app (should see correct button color)
  3. toggle back in the custom flow
  4. Reload your app (should see correct button color still)
#

Then just hard reset your app, and let me know if you see the default colors.

primal violet
#

I have not tested on an actual device yet.

#

@solid python what do you mean by reload? kill and reopen or allow react-native's hot reloaded to reload

solid python
#

Hit r in Metro

primal violet
#

ok give me a moment

#

Sorry i am having some emulator issues, this might take a bit longer than expected

solid python
#

Np, it was really finicky for me and took a while as well

primal violet
#

you were able to see it happening / is a bug ?

solid python
#

It does seem so.

#

I'm just confused why it does display correctly after I refresh from the non-custom flow

#

I assume because that appearance setting is getting cached somewhere

#

But not sure.

#

I'll file a bug report either way but having you reproduce exactly what happened to me would help confirm what is going on.

primal violet
solid python
#

Gotcha

#

So the bug does only appear when you do a hard restart

#

Otherwise we are pulling the appearance API correctly from... somewhere

#

So for next steps, can you write an email to support (https://support.stripe.com/contact/login) and mention my handle bismarck in your email and let me know when you have sent it? That will allow me to grab the ticket and follow up with you async after I file the bug report. Then I can keep you updated on when this is fixed.

primal violet
#

email sent through the support portal

Subject was "React-native SDK is not properly displaying custom colors when customFlow is true on android. "

solid python
#

Great I see it

#

I'll follow up over email later today.

#

Thanks for flagging this!

primal violet
#

np, as for a work around for the time being... would you suggest just not setting the customFlow to true?

solid python
#

Yes that is likely best. Overall I will push for this to get fixed pretty quickly, though I can't promise it.

primal violet
#

haha all good. I am sure there are plenty of other more pressing things. what is "pretty quickly" in the world of stripe dev speed?

solid python
#

Really depends on how tricky the bug is to fix.

#

We usually try to prioritize stuff like this pretty quickly.

#

But yeah, can't give a specific timeline since I don't know how involved the fix will be.

primal violet
#

classic broad answer, i dig it ๐Ÿ™‚

solid python
#

Just got to manage expectations :). I'll likely know more later today and may be able to give you more specifics.

primal violet
#

cool cool ๐Ÿ‘๐Ÿป