paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
83 stars 95 forks source link

Using the SDK with React Native #189

Closed andresusanto closed 3 years ago

andresusanto commented 3 years ago

Hello!

Can the SDK be used for React Native app? Do you have a guide / example on how to use the SDK to React Native app?

I tried to add the SDK to a RN app's gradle file, but it didn't work:

No variants of com.eclipsesource.j2v8:j2v8:4.6.0 match the consumer attributes:
  - com.eclipsesource.j2v8:j2v8:4.6.0 configuration runtime:
      - Incompatible attribute:
          - Required artifactType 'android-classes' and found incompatible value 'aar.asc'.
      - Other attributes:
          - Required dexing-enable-desugaring 'true' but no value provided.
          - Required dexing-is-debuggable 'true' but no value provided.
          - Required dexing-min-sdk '16' but no value provided.
          - Found org.gradle.category 'library' but wasn't required.
          - Found org.gradle.libraryelements 'jar' but wasn't required.
          - Found org.gradle.status 'release' but wasn't required.
          - Found org.gradle.usage 'java-runtime' but wasn't required.

Thanks! Andre