@pivotable/shared

v1.0.5

Published

Shared components, services, and utilities for Pivotable applications

Downloads

8

Readme

@pivotable/shared

Shared code between Pivotable web and mobile applications.

Structure

  • services/ - Business logic and API services (Supabase, auth, jobs, etc.)
  • hooks/ - React hooks for data fetching with React Query
  • types/ - TypeScript type definitions
  • utils/ - Utility functions
  • styles/ - Shared Tailwind className strings for consistent styling

Usage

In Web App (Next.js)

import { authService } from "@pivotable/shared/services/authService";
import { useTrackedJobs } from "@pivotable/shared/hooks/useTrackedJobs";
import { Job } from "@pivotable/shared/types";

In Mobile App (React Native + Gluestack)

import { authService } from "@pivotable/shared/services/authService";
import { useTrackedJobs } from "@pivotable/shared/hooks/useTrackedJobs";
import { Job } from "@pivotable/shared/types";

Same imports, same code! 🎉