{"id":31581346,"url":"https://github.com/pakenfit/react-native-smooth-tabs-nativewind","last_synced_at":"2026-05-07T05:39:45.189Z","repository":{"id":315724442,"uuid":"1060611036","full_name":"pakenfit/react-native-smooth-tabs-nativewind","owner":"pakenfit","description":"A React Native/Expo educational project that demonstrates smooth tab animations and gesture handling with React Native Reanimated.","archived":false,"fork":false,"pushed_at":"2025-09-20T17:33:24.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T21:58:29.393Z","etag":null,"topics":["expo","nativewind","react-native","react-native-gesture-handler","react-native-reanimated","tabs","tailwind"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pakenfit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-20T08:29:46.000Z","updated_at":"2025-09-21T09:00:30.000Z","dependencies_parsed_at":"2025-09-20T10:25:39.504Z","dependency_job_id":"f3bc225e-f573-45fd-9579-766e0ea14256","html_url":"https://github.com/pakenfit/react-native-smooth-tabs-nativewind","commit_stats":null,"previous_names":["pakenfit/react-native-smooth-tabs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pakenfit/react-native-smooth-tabs-nativewind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakenfit%2Freact-native-smooth-tabs-nativewind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakenfit%2Freact-native-smooth-tabs-nativewind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakenfit%2Freact-native-smooth-tabs-nativewind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakenfit%2Freact-native-smooth-tabs-nativewind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pakenfit","download_url":"https://codeload.github.com/pakenfit/react-native-smooth-tabs-nativewind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakenfit%2Freact-native-smooth-tabs-nativewind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32725214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expo","nativewind","react-native","react-native-gesture-handler","react-native-reanimated","tabs","tailwind"],"created_at":"2025-10-05T21:56:31.920Z","updated_at":"2026-05-07T05:39:45.168Z","avatar_url":"https://github.com/pakenfit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Smooth Tabs\n\nA React Native/Expo educational project that demonstrates smooth tab animations and gesture handling with React Native Reanimated.\n\n## Features\n\n- **Smooth Tab Animations**: Animated tab indicator that smoothly transitions between tabs\n- **Gesture Handling**: Built with `react-native-gesture-handler` for responsive touch interactions\n- **Spring Animations**: Uses `react-native-reanimated` for fluid tab transitions and scaling effects\n- **Modern UI**: Styled with NativeWind (Tailwind CSS for React Native)\n- **Cross-Platform**: Runs on iOS, Android, and Web using Expo\n\n## Tech Stack\n\n- **React Native** with Expo Router\n- **TypeScript** for type safety\n- **NativeWind** for styling (Tailwind CSS)\n- **React Native Gesture Handler** for touch gestures\n- **React Native Reanimated** for animations\n- **Expo** for cross-platform development\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v18 or later)\n- Expo CLI (`npm install -g @expo/cli`)\n- iOS Simulator (for iOS development) or Android Studio (for Android development)\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone \u003crepository-url\u003e\ncd react-native-smooth-tabs\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n# or\nbun install\n```\n\n3. Start the development server:\n\n```bash\nnpm start\n# or\nbun start\n```\n\n4. Run on your preferred platform:\n\n```bash\n# iOS\nnpm run ios\n# or\nbun run ios\n\n# Android\nnpm run android\n# or\nbun run android\n\n# Web\nnpm run web\n# or\nbun run web\n```\n\n## Project Structure\n\n```\n├── app/                    # Expo Router pages\n│   ├── _layout.tsx         # Root layout with gesture handler\n│   ├── index.tsx          # Main home screen\n│   └── +html.tsx          # HTML template for web\n├── components/            # Reusable components\n│   ├── tab-view.tsx       # Main tab container with animations\n│   ├── tab-item.tsx       # Individual tab component\n│   ├── container.tsx      # Safe area container\n│   └── button.tsx         # Custom button component\n├── lib/                   # Utility functions\n│   └── utils.ts           # Helper functions (cn utility)\n├── assets/                # Images and icons\n└── global.css             # Global styles\n```\n\n## How It Works\n\n1. **Tab Layout**: The app displays a horizontal scrollable tab bar with movie categories\n2. **Gesture Detection**: Tap gestures are detected on each tab item\n3. **Animation**: Tab indicator smoothly animates to the selected tab position\n4. **Spring Physics**: Uses spring animations for natural, responsive transitions\n5. **Layout Measurement**: Each tab's position and size is measured for precise indicator positioning\n\n## Key Components\n\n### TabView\n\n- Main container component that manages tab state and animations\n- Handles tab selection and indicator positioning\n- Implements spring animations for smooth transitions\n- Measures tab layouts for precise indicator positioning\n\n### TabItem\n\n- Individual tab component with press handling\n- Implements scale animations for active/inactive states\n- Measures its own layout for indicator positioning\n- Handles tab press events and visual feedback\n\n## Development\n\n### Available Scripts\n\n- `npm start` - Start Expo development server\n- `npm run ios` - Run on iOS simulator\n- `npm run android` - Run on Android emulator\n- `npm run web` - Run in web browser\n- `npm run lint` - Run ESLint and Prettier checks\n- `npm run format` - Format code with ESLint and Prettier\n\n### Code Quality\n\nThe project uses:\n\n- **ESLint** for code linting\n- **Prettier** for code formatting\n- **TypeScript** for type checking\n\n## Learning Objectives\n\nThis project demonstrates:\n\n- React Native animation libraries (Reanimated)\n- Layout measurement and positioning techniques\n- Spring physics for natural animations\n- Component state management with React hooks\n- Cross-platform development with Expo\n- Modern React Native development patterns\n- TypeScript usage in React Native\n- Gesture handling and touch interactions\n\n## Contributing\n\nThis is an educational project. Feel free to fork and experiment with:\n\n- Adding more tab categories\n- Implementing different animation effects (bounce, elastic, etc.)\n- Adding tab icons or badges\n- Creating different tab styles (segmented control, underline, etc.)\n- Adding haptic feedback on tab selection\n- Implementing tab content switching\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpakenfit%2Freact-native-smooth-tabs-nativewind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpakenfit%2Freact-native-smooth-tabs-nativewind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpakenfit%2Freact-native-smooth-tabs-nativewind/lists"}