# Theme Override Mechanism

This package provides work-specific theme overrides that take precedence over the base `@hero-design/rn` theme while maintaining full API compatibility.

## How It Works

### Export Strategy
We use ES6 module export precedence where named exports override wildcard exports:

```typescript
// Re-export everything from base package
export * from '@hero-design/rn';

// Override specific theme exports (these take precedence)
export { 
  getTheme,
  ThemeProvider,
  useTheme,
  theme,
  // ... other theme-related exports
} from './theme';
```

### What Gets Overridden
Only theme-related exports are customized for work-specific needs:

- **`getTheme()`** - Returns work theme with `textInput` component overrides
- **`ThemeProvider`** - Work-specific theme provider with enhanced typing
- **`useTheme()`** - Hook returning work theme with proper TypeScript types
- **`theme`** - Default work theme object
- **Theme types** - Enhanced TypeScript definitions

All other components (Button, TextInput, etc.) remain unchanged from the base package.

## Usage

### Drop-in Replacement
Replace your imports without any code changes:

```typescript
// Before
import { ThemeProvider, useTheme, Button } from '@hero-design/rn';

// After - same API, work theme applied automatically
import { ThemeProvider, useTheme, Button } from '@hero-design/rn-work-uikit';
```

### Guaranteed Behavior
- ✅ Work-specific theme overrides (currently `textInput` styling)
- ✅ All base components and functionality preserved
- ✅ Full TypeScript support with work theme types
- ✅ Backward compatibility with existing code 