rn-senyumku-sdk
Senyumku SDK for React Native
Installation
coming soon
Usage
Embedding Widget
import { RnSenyumkuSdkWidget } from "@tunaiku.npm/rn-senyumku-sdk";
<RnSenyumkuSdkWidget style={{flex:1}} />
Direct Debit
import { DirectDebitModule } from '@tunaiku.npm/rn-senyumku-sdk'
...
const doDirectDebit = () => {
DirectDebitModule.showDirectDebitDialog({
amount: 10000,
})
.then((result) => {
console.log(result);
})
.catch((error) => {
Alert.alert('Error', error.message);
});
};
...
<Button title="Direct Debit" onPress={doDirectDebit} />
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library