Skip to content

Commit bd7779a

Browse files
committed
fix: fix import
1 parent 4b2877b commit bd7779a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

development/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { NativeModules } from 'react-native'
2-
import Paystack from './paystack';
2+
import { Paystack } from './paystack';
33
import * as paystackProps from './types'
44

55
export {
66
Paystack,
7-
paystackProps
7+
paystackProps
88
}
99

1010
export default NativeModules.ReactNativePaystackWebviewModule

development/paystack.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { PayStackProps, PayStackRef } from "./types";
2525
import { styles } from "./style";
2626
import { CLOSE_URL, DEFAULT_ACTIVITY_INDICATOR_COLOR, DEFAULT_AMOUNT, DEFAULT_CURRENCY } from "./utils/constants";
2727

28-
const Paystack = forwardRef<PayStackRef, PayStackProps>(
28+
export const Paystack = forwardRef<PayStackRef, PayStackProps>(
2929
(
3030
{
3131
paystackKey,
@@ -169,6 +169,4 @@ const Paystack = forwardRef<PayStackRef, PayStackProps>(
169169
</Modal>
170170
);
171171
}
172-
);
173-
174-
export default Paystack;
172+
);

0 commit comments

Comments
 (0)