{"id":26677894,"url":"https://github.com/pioner92/react-native-auto-skeleton","last_synced_at":"2026-01-19T21:51:39.046Z","repository":{"id":284216945,"uuid":"953032647","full_name":"pioner92/react-native-auto-skeleton","owner":"pioner92","description":"🚀  Automatically generates skeleton based on your existing UI layout without manual configuration.","archived":false,"fork":false,"pushed_at":"2025-11-25T10:54:30.000Z","size":15124,"stargazers_count":318,"open_issues_count":3,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-11-28T16:53:32.393Z","etag":null,"topics":["expo","fabric","loader","native-component","react-native","react-native-loader","react-native-placeholder","react-native-skeleton","react-native-ui","rn-placeholder","rn-skeleton","skeleton","skeleton-loader"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pioner92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["pioner92"],"buy_me_a_coffee":"pioner92"}},"created_at":"2025-03-22T12:15:43.000Z","updated_at":"2025-11-28T13:45:39.000Z","dependencies_parsed_at":"2025-05-08T07:00:47.533Z","dependency_job_id":null,"html_url":"https://github.com/pioner92/react-native-auto-skeleton","commit_stats":null,"previous_names":["pioner92/react-native-auto-skeleton"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/pioner92/react-native-auto-skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioner92%2Freact-native-auto-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioner92%2Freact-native-auto-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioner92%2Freact-native-auto-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioner92%2Freact-native-auto-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pioner92","download_url":"https://codeload.github.com/pioner92/react-native-auto-skeleton/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioner92%2Freact-native-auto-skeleton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28579127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T17:42:58.221Z","status":"ssl_error","status_checked_at":"2026-01-19T17:40:54.158Z","response_time":67,"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","fabric","loader","native-component","react-native","react-native-loader","react-native-placeholder","react-native-skeleton","react-native-ui","rn-placeholder","rn-skeleton","skeleton","skeleton-loader"],"created_at":"2025-03-26T05:14:15.576Z","updated_at":"2026-01-19T21:51:39.040Z","avatar_url":"https://github.com/pioner92.png","language":"Kotlin","funding_links":["https://github.com/sponsors/pioner92","https://buymeacoffee.com/pioner92"],"categories":["Kotlin","UI Components"],"sub_categories":["Progress, Loaders \u0026 Skeletons"],"readme":"# React Native Auto Skeleton – Lightweight Skeleton Loader for React Native\n\n**`react-native-auto-skeleton`** is a modern **skeleton loader for React Native**, designed to automatically render **loading placeholders** (shimmer-style) based on your existing layout.\n\n\u003e Ideal replacement for `react-native-skeleton-placeholder` and other manual solutions.\n\n\n\u003cdiv align=\"center\" style=\"max-width: 400px; margin: auto;\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-auto-skeleton\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/react-native-auto-skeleton.svg\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-auto-skeleton\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/react-native-auto-skeleton.svg\" alt=\"npm downloads\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-iOS-blue?logo=apple\" alt=\"iOS\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-Android-green?logo=android\" alt=\"Android\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/types-TypeScript-blue?logo=typescript\" alt=\"TypeScript\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-yellow.svg\" alt=\"MIT License\" /\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=react-native-auto-skeleton\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/react-native-auto-skeleton\" alt=\"Bundle size\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## Demo\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/demo.gif\" width=\"500\" alt=\"react-native-auto-skeleton demo\" /\u003e\n\u003c/p\u003e\n\n## ✅ Platform Support\n\n| Platform | Old Arch | Fabric |\n|----------|----------|--------|\n| iOS      | ✅        | ✅      |\n| Android  | ✅        | ✅      |\n\n## Installation\n\nUsing npm:\n```bash\nnpm install react-native-auto-skeleton\n```\n\nUsing yarn:\n```bash\nyarn add react-native-auto-skeleton\n```\n### Expo\nThis library works in Expo (with `expo prebuild`) without additional configuration.\n\n## Usage\n\n\u003e ⚠️ **Warning:** On Android, automatic detection of a view’s border-radius is not supported. You can override it manually via the defaultRadius prop.\n\nHere's a quick example to get started:\n\n\n```tsx\n\nimport { AutoSkeletonView, AutoSkeletonIgnoreView } from 'react-native-auto-skeleton';\n...\n\n\u003cAutoSkeletonView isLoading={isLoading}\u003e\n    ...YOUR VIEWS\n  \u003cAutoSkeletonIgnoreView\u003e // Content that will be ignored by the skeleton\n    ... Views without skeleton\n  \u003c/AutoSkeletonIgnoreView\u003e\n\u003c/AutoSkeletonView\u003e\n```\n\nFull example\n\n```tsx\nimport { AutoSkeletonView } from 'react-native-auto-skeleton';\n\ninterface IProfile {\n  name: string;\n  jobTitle: string;\n  avatar: string;\n}\n\nconst getProfile = async (): Promise\u003cIProfile\u003e =\u003e {\n  // Fetch profile data from your API\n};\n\nexport default function App() {\n  const [isLoading, setIsLoading] = useState(true);\n  const [profile, setProfile] = useState\u003cIProfile\u003e({} as IProfile);\n\n  useEffect(() =\u003e {\n    (async () =\u003e {\n      const res = await getProfile();\n      setProfile(res);\n      setIsLoading(false);\n    })();\n  }, []);\n\n  return (\n     \u003cAutoSkeletonView isLoading={isLoading}\u003e\n      \u003cView style={styles.avatarWithName}\u003e\n        \u003cImage style={styles.avatar} source={{ uri: profile.avatar }} /\u003e\n        \u003cView style={{ flex: 1 }}\u003e\n          \u003cText style={styles.name}\u003e{profile.name}\u003c/Text\u003e\n          \u003cText style={styles.jobTitle}\u003e{profile.jobTitle}\u003c/Text\u003e\n        \u003c/View\u003e\n      \u003c/View\u003e\n\n      {/* This buttons block will have skeleton applied */}\n      \u003cView style={styles.buttons}\u003e\n        \u003cTouchableOpacity style={styles.button}\u003e\n          \u003cText style={styles.buttonTitle}\u003eAdd\u003c/Text\u003e\n        \u003c/TouchableOpacity\u003e\n        \u003cTouchableOpacity style={styles.button}\u003e\n          \u003cText style={styles.buttonTitle}\u003eDelete\u003c/Text\u003e\n        \u003c/TouchableOpacity\u003e\n      \u003c/View\u003e\n\n      {/* Alternatively, to exclude buttons from skeleton rendering: */}\n      \u003cAutoSkeletonIgnoreView\u003e\n        \u003cView style={styles.buttons}\u003e\n           ...\n        \u003c/View\u003e\n      \u003c/AutoSkeletonIgnoreView\u003e\n    \u003c/AutoSkeletonView\u003e\n  );\n}\n```\n\n## API\n| Prop | type | Description |\n|---|---|---|\n| **isLoading** | boolean | Enables or disables the skeleton state|\n| **shimmerSpeed** | number | Duration of one shimmer animation cycle in seconds. Lower values = faster shimmer |\n| **shimmerBackgroundColor** | string | Background color for animation types: `pulse` and `none` |\n| **gradientColors** | [string,string] | Gradient colors for the skeleton gradient |\n| **defaultRadius** | number | Default corner radius for skeleton elements that don't have a defined `borderRadius` |   |\n| **animationType** | `\"gradient\"` \\| `\"pulse\"` \\| `\"none\"` | Skeleton animation |   |\n\n## Best Practices\n\n- For rapid implementation, wrap entire UI sections with `\u003cAutoSkeletonView\u003e`.\n- For precise control, wrap individual UI components or groups separately.\n- Ensure components have clearly defined dimensions, backgrounds, or styles for optimal skeleton rendering.\n- To exclude specific components from skeleton rendering, wrap them with `\u003cAutoSkeletonIgnoreView\u003e`. Any content inside this wrapper will not be processed by the skeleton system.\n\n## 🔁 Alternative Solutions\n\nYou may also know:\n\n- [`react-native-skeleton-placeholder`](https://github.com/chramos/react-native-skeleton-placeholder)\n- [`react-content-loader`](https://github.com/danilowoz/react-content-loader)\n\nIf you're looking for a **React Native skeleton loader** that works **automatically**, with **Fabric support**, and no manual configuration, `react-native-auto-skeleton` is your go-to solution.\n\n## License\n\n[MIT](LICENSE)\n\n---\n\n## 📌 Keywords\n\nReact Native Skeleton, React Native Placeholder, react-native skeleton loader, react native shimmer, loading indicator React Native, Fabric placeholder view, auto skeleton view, react native content loader.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpioner92%2Freact-native-auto-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpioner92%2Freact-native-auto-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpioner92%2Freact-native-auto-skeleton/lists"}