forked from brascene/rn-apple-pay-button
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (23 loc) · 645 Bytes
/
index.js
File metadata and controls
26 lines (23 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import * as React from "react";
import { NativeModules, requireNativeComponent } from "react-native";
const APButtonComponent = requireNativeComponent("APButton");
export class ApplePayButton extends React.Component {
static defaultProps = {
buttonStyle: "black",
buttonType: "plain",
height: 44,
cornerRadius: 4
};
render() {
return (
<APButtonComponent
buttonStyle={this.props.buttonStyle}
buttonType={this.props.type}
cornerRadius={this.props.cornerRadius}
onPress={this.props.onPress}
width={this.props.width}
height={this.props.height}
/>
);
}
}