-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: dependencies changed & imports added * chore: callback's setter logic changed (setState removed) * chore: (import syntax changed for types) * chore: ci changed * chore: ci changed * chore: ci changed
- Loading branch information
1 parent
d3a6200
commit 4eb11df
Showing
9 changed files
with
24,347 additions
and
2,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import { Button, View } from "react-native"; | ||
import { useKkiapay } from "src/kkiapay"; | ||
|
||
import { Button, View } from 'react-native'; | ||
import { useKkiapay } from 'src/kkiapay'; | ||
import React from 'react'; | ||
|
||
export default function TestComponent() { | ||
const { openKkiapayWidget } = useKkiapay(); | ||
|
||
const {openKkiapayWidget} = useKkiapay(); | ||
|
||
const openWidget = () => { | ||
openKkiapayWidget({amount: 100, key: '3425dc6035d711eca8f5b92f2997955b', sandbox: true }) | ||
} | ||
const openWidget = () => { | ||
openKkiapayWidget({ | ||
amount: 100, | ||
key: '3425dc6035d711eca8f5b92f2997955b', | ||
sandbox: true, | ||
reason: 'Payment', | ||
}); | ||
}; | ||
|
||
return ( | ||
<View> | ||
<Button title="Pay now" onPress={openWidget}> | ||
</Vie> | ||
) | ||
} | ||
<Button title="Pay now" onPress={openWidget} /> | ||
</View> | ||
); | ||
} |
Oops, something went wrong.