diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index d402f3d..bb0df02 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -21,7 +21,8 @@ runs: - name: Install dependencies if: steps.yarn-cache.outputs.cache-hit != 'true' - run: | - yarn install --cwd example --frozen-lockfile - yarn install --frozen-lockfile + run: yarn install --immutable + #run: | + # yarn install --cwd example --frozen-lockfile + # yarn install --frozen-lockfile shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c5ee1f..be06f54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,9 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: Enable corepack + run: corepack enable + - name: Checkout uses: actions/checkout@v3 diff --git a/README.md b/README.md index 10ad9c8..49f120a 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ interface IData { direct?: string; split?: string; partnerId?: string; + reason: string; } interface ListenerData { transactionId: string; diff --git a/example/src/TestComponent.tsx b/example/src/TestComponent.tsx index 33c53db..aa7de8d 100644 --- a/example/src/TestComponent.tsx +++ b/example/src/TestComponent.tsx @@ -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 ( -