paytm-customuisdk-react-native
Version:
Paytm Custom ui sdk plugin for custom ui sdk
35 lines • 1.28 kB
JavaScript
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from 'react';
import { NativeModules, requireNativeComponent } from 'react-native';
const {
PaytmCustomuisdk
} = NativeModules;
export default PaytmCustomuisdk;
var AuthCheckBox = requireNativeComponent('PaytmConsentCheckBox');
export class PaytmConsentCheckBox extends React.Component {
constructor(props) {
super(props);
this._onChange = this._onChange.bind(this);
}
_onChange = event => {
let {
value
} = event.nativeEvent;
console.log(value);
this.props.onChange(value);
};
render() {
return /*#__PURE__*/React.createElement(AuthCheckBox, _extends({}, this.props, {
tintColor: this.props.tintColor,
consentBackgroundColor: this.props.style.backgroundColor,
checkTintColor: this.props.tintColor["true"],
unCheckTintColor: this.props.tintColor["false"],
style: [{
flex: 1,
padding: 24
}, this.props.style],
onCheckChange: this._onChange
}));
}
}
//# sourceMappingURL=index.js.map