forked from stripe/stripe-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Fixes stripe#1812 CardField onCardChange not triggering in Reac…
…t Native Stripe - Updated CardChangedEvent and CardFocusEvent to conform to the Fabric protocol - Updates the dispatcher in CardFieldView to Fabric compatible code - Checks the id of the view before dispatching the events in a case where the event is fired before the render is complete, thereby causing the id to be -1. This also leads to the following error > Maximum call stack size exceeded (native stack depth) No stack
- Loading branch information
Kaushil Ruparelia
committed
Jan 27, 2025
1 parent
a733a85
commit 010bfae
Showing
3 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
android/src/main/java/com/reactnativestripesdk/CardFocusEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters