#simonelandi-reactN-iOS-crash

1 messages ยท Page 1 of 1 (latest)

stray prawn
#

Hi there ๐Ÿ‘‹ I haven't seen this before, but am looking into it. That error leads me to believe that an image resource is missing from the build somehow.

reef widget
#

Hello toby, thank you for spending time on this!
Is there something I can do to help you verify if some asset is missing in Xcode?

#

I can provide Xcode and code screenshoots if needed

stray prawn
#

Maybe, but let's start with looking at version info. Which version of stripe-react-native are you using?

reef widget
#

"@stripe/stripe-react-native": "^0.2.3"

#

package installed this morning

stray prawn
#

Thank you for that, I'm consulting with colleagues on this and will need a little time to have that discussion.

reef widget
#

Ok...thank you all for investigating the issue...when will you be able to come back with feedback roughly? (later today, tomorrow, next days etc)

stray prawn
#

Hopefully within about 15 minutes (though I can't say with certainty at this point). This forum doesn't work too well for long running discussions.

reef widget
#

no problem...take your time ๐Ÿ‘

stray prawn
#

Thank you for your patience! Within your project, can you look in the /ios/Pods/Stripe/Stripe/Resources/Images folder and see how many image files it contains?

reef widget
#

sure...hold on

#

can confirm /ios/Pods/Stripe/Stripe/Resources/Images exists and this is what it contains

#

hope image quality is good enough

stray prawn
#

Image quality is great, can you expand that Cards folder?

reef widget
#

sure

#

here you go

#

as the error says "stp_card_unknown", might it be possible that CardField element (when render for the first time and empty) is trying to generate the stp_card_[card type] and due to the fact that any number has been inserted yet this causes the CardField component to crash?

#

just thinking out loud

stray prawn
#

Yeah, it seems like it's trying to render that stp_card_unknown image but isn't able to find it. Did you run pod install within your iOS directory to set up the native dependencies?

reef widget
#

yep sure

#

without error

#

screenshoot from pod install right after installation

#

is there any way to tell CardField component to wait for user's card number prompting to avoid crashing?

stray prawn
#

I don't think that would work. I think it would see the card number, try to find the relevant card brand image, and then crash.

reef widget
#

doh!

stray prawn
#

Are you by chance trying to an update an app that previously used tipsi_stripe?

reef widget
#

nope

#

first and only payment package installed in the project is stripe-react-native

stray prawn
#

Sorry, I'm struggling to find what could be the problem.

reef widget
#

no problem...I know exactly what you are going through...before writing you I went through dozens of threads / doc pages without finding a solution...you are my last chance to solve the problem ๐Ÿฅฒ

stray prawn
#

Have you tried running the example app that comes with our React Native library?

reef widget
#

nope...I'm starting a brand new rn app and just install your package to test it out

#

but i will definitely try to install your demo

stray prawn
#

My thought is that if the example doesn't work then the concern may be something in your environment, but if that example works then the problem is more likely specific to your app.

reef widget
#

ok...I will give it a try and let you know asap

#

thanks for your help

stray prawn
#

Any time!

reef widget
#

๐Ÿ‘

stray prawn
#

I've got to step away soon, but I've briefed my teammates on this and will be leaving this thread open.

reef widget
#

many thanks toby