@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
20 lines (16 loc) • 534 B
text/typescript
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type { ViewProps } from 'react-native';
import type {
DirectEventHandler,
Int32,
} from 'react-native/Libraries/Types/CodegenTypes';
export type LayoutChangeEvent = {
width: Int32;
height: Int32;
};
export interface NativeProps extends ViewProps {
paymentMethod: string;
configuration: string;
onLayoutChange?: DirectEventHandler<LayoutChangeEvent>;
}
export default codegenNativeComponent<NativeProps>('CardView');