#simonelandi-reactN-iOS-crash
1 messages ยท Page 1 of 1 (latest)
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.
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
Maybe, but let's start with looking at version info. Which version of stripe-react-native are you using?
Thank you for that, I'm consulting with colleagues on this and will need a little time to have that discussion.
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)
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.
no problem...take your time ๐
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?
sure...hold on
can confirm /ios/Pods/Stripe/Stripe/Resources/Images exists and this is what it contains
hope image quality is good enough
Image quality is great, can you expand that Cards folder?
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
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?
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?
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.
doh!
Are you by chance trying to an update an app that previously used tipsi_stripe?
Sorry, I'm struggling to find what could be the problem.
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 ๐ฅฒ
Have you tried running the example app that comes with our React Native library?
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
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.
Any time!
๐
I've got to step away soon, but I've briefed my teammates on this and will be leaving this thread open.
many thanks toby