UNPKG

@cardql/react-native

Version:

CardQL SDK for React Native applications with mobile-optimized features

63 lines (59 loc) 1.42 kB
// Re-export everything from core export * from "@cardql/core"; // Export React Native-specific functionality export * from "./context"; export * from "./storage"; export * from "./hooks/useNetworkStatus"; export * from "./hooks/useOfflineQueue"; export * from "./components/PaymentSheet"; // Re-export hooks from React package (they work in React Native too) export { useQuery } from "@cardql/react"; export { useMutation } from "@cardql/react"; export { useAccounts, useAccount, useCreateAccount, useUpdateAccount, useDeleteAccount, useApps, useApp, useCreateApp, useUpdateApp, useDeleteApp, useCustomers, useCustomer, useCreateCustomer, useUpdateCustomer, useDeleteCustomer, useMerchants, useMerchant, useCreateMerchant, useUpdateMerchant, useDeleteMerchant, usePayments, usePayment, useCreatePayment, useUpdatePayment, useDeletePayment, useLedgers, useLedger, useCreateLedger, useUpdateLedger, useDeleteLedger, } from "@cardql/react"; // Main exports export { CardQLProvider, useCardQL, useCardQLClient, useCardQLApi, } from "./context"; export { storage, createStorageKey, isStorageAvailable } from "./storage"; export { useNetworkStatus, useIsOnline, useIsOffline, useNetworkType, } from "./hooks/useNetworkStatus"; export { useOfflineQueue } from "./hooks/useOfflineQueue"; export { PaymentSheet } from "./components/PaymentSheet";