We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Same as #67.
CardIOModule.scanCard() does not resolve on Android detached from Expo.
The issue seems to be that MainActivity extends DetachActivity rather than MainActivity extends ReactActivity.
MainActivity extends DetachActivity
MainActivity extends ReactActivity
Is there a fix?
The text was updated successfully, but these errors were encountered:
A solution mentioned at expo/expo#651 looks promising. Will give it a go and report back here.
Sorry, something went wrong.
Can confirm that solution mentioned in expo/expo#651 works. Specifically for this issue:
In the react-native-awesome-card-io build.gradle, add a dependency on the exponent module:
implementation('host.exp.exponent:expoview:28.0.0@aar') { exclude module: 'CreditCardEntry' }
Make RNCardIOModule implement ActivityResultListener (host.exp.exponent.ActivityResultListener).
RNCardIOModule
ActivityResultListener
host.exp.exponent.ActivityResultListener
In the constructor use Exponent.getInstance().addActivityResultListener(this); instead of reactContext.addActivityEventListener(this);.
Exponent.getInstance().addActivityResultListener(this);
reactContext.addActivityEventListener(this);
Remove the first parameter Activity activity from the onActivityResult result.
Activity activity
onActivityResult
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) {
@miraan what about issue status? maybe better to close this issue?
@miraan proposed a solution, closing this issue.
No branches or pull requests
Same as #67.
CardIOModule.scanCard() does not resolve on Android detached from Expo.
The issue seems to be that
MainActivity extends DetachActivity
rather thanMainActivity extends ReactActivity
.Is there a fix?
The text was updated successfully, but these errors were encountered: