Skip to content

[BUG] ERROR Invariant Violation: Tried to register two views with the same name AddToWalletButton, js engine: hermes #41

@wcastand

Description

@wcastand

trying to implement this in an expo app, writing the plugin for it at the same time and switching from our internal version this this one.

I encounter this error and my best guess is it conflicts with stripe somehow that also tries to add the same view maybe?

i don't have a component with this name in my codebase so not sure why i would get this error otherwise.

 ERROR  Invariant Violation: Tried to register two views with the same name AddToWalletButton, js engine: hermes

i also get this error originating from the screen where we have Stripe payment sheet which leads me to believe it's linked. Also stripe is the only other lib i can see implementing this view since they have a pay with google pay feature in the payment sheet.

looking quickly at their source code, they do have a component with this name
https://github.com/search?q=repo:stripe/stripe-react-native%20AddToWalletButton&type=code

reproduction: https://github.com/wcastand/bug-rn-wallet

try to make it minimal but need stripe/rn-wallet so need expo-dev and stuff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions