@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
11 lines (10 loc) • 451 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setImport = setImport;
function setImport(contents, useFrameworks) {
const importLine = useFrameworks
? '#import <adyen_react_native/ADYRedirectComponent.h>'
: '#import <adyen-react-native/ADYRedirectComponent.h>';
contents = contents.replace('#import "AppDelegate.h"\n', `#import "AppDelegate.h"\n\n${importLine}\n`);
return contents;
}