Adyen / adyen-react-native

Adyen React Native
https://docs.adyen.com/checkout
MIT License
44 stars 32 forks source link

Crash: Android after AdyenAction.handle #369

Closed gunnartorfis closed 7 months ago

gunnartorfis commented 7 months ago

Describe the bug When attempting to handle an action for a stored card (tried both 3ds & frictionless), our Android app crashes. I'm using the V2 beta 2 version.

To Reproduce Steps to reproduce the behavior:

  1. Pay with any card and save/store the card
  2. Attempt to pay with the stored card, get the error and have the AdyenAction.handle handle it
  3. App crashes

Expected behavior The action should be handled.

Screenshots Photo Feb

Smartphone (please complete the following information):

Sentry error

Screenshot 2024-02-12 at 13 15 12
gunnartorfis commented 7 months ago

Possible duplicate of #163

gunnartorfis commented 7 months ago

Fixed by updating the AppTheme as suggested in #163 Here's an Expo Config Plugin to change that if anyone's interested:

config.modResults.resources.style = config.modResults.resources.style.map(s => {
      if (s['$'] && s['$'].name === 'AppTheme') {
        return {
          ...s,
          ['$']: {
            name: 'AppTheme',
            parent: 'Theme.MaterialComponents.DayNight.NoActionBar',
          },
        };
      }
      return s;
    });