Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removing usage of the map for cardview reference #436

Merged
merged 2 commits into from
Jul 21, 2021

Conversation

souhe
Copy link
Collaborator

@souhe souhe commented Jul 19, 2021

An attempt to fix #391

In order to fix the deallocation issue and make the code a little bit more readable I moved the CardFieldView reference from manager to StripeSdk. Thanks to that we don't have to cache anything in ViewManager and accessing card reference is easier from StripeSdk.

This solution works with assumption that there can only be one CardField rendered at once

TODO:

  • implement POC solution|
  • refactor implmented solution
  • test that this change doesn't break anything

closes #391

@souhe souhe changed the title WIP: fix: removing usage of the map for cardview reference fix: removing usage of the map for cardview reference Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CardField crash the app with EXC_BAD_ACCESS on iOS 13.*
2 participants