{"id":13776502,"url":"https://github.com/oblador/react-native-shimmer","last_synced_at":"2025-06-14T14:09:29.959Z","repository":{"id":37493327,"uuid":"58588017","full_name":"oblador/react-native-shimmer","owner":"oblador","description":"Simple shimmering effect for any view in React Native","archived":false,"fork":false,"pushed_at":"2024-02-22T17:48:35.000Z","size":491,"stargazers_count":708,"open_issues_count":19,"forks_count":89,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-06T06:35:52.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/oblador.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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},"funding":{"github":["oblador"]}},"created_at":"2016-05-11T22:48:04.000Z","updated_at":"2025-03-28T18:48:47.000Z","dependencies_parsed_at":"2024-01-13T07:24:05.108Z","dependency_job_id":"9dbd46eb-ea0e-444d-b426-73ad80a72045","html_url":"https://github.com/oblador/react-native-shimmer","commit_stats":{"total_commits":50,"total_committers":8,"mean_commits":6.25,"dds":"0.16000000000000003","last_synced_commit":"f1c379a3f33627ec255474c3b4a1730bdfbb95c3"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/oblador/react-native-shimmer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-shimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-shimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-shimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-shimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oblador","download_url":"https://codeload.github.com/oblador/react-native-shimmer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-shimmer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259827667,"owners_count":22917714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-03T18:00:27.717Z","updated_at":"2025-06-14T14:09:29.938Z","avatar_url":"https://github.com/oblador.png","language":"Java","funding_links":["https://github.com/sponsors/oblador"],"categories":["\u003ca name=\"UI:-Native-Modules\"\u003eUI: Native Modules\u003c/a\u003e"],"sub_categories":[],"readme":"# react-native-shimmer\n\nSimple shimmering effect in React Native. Based on [Shimmer](https://github.com/facebook/Shimmer)/[shimmer-android](https://github.com/facebook/shimmer-android).\n\n![Shimmer](https://github.com/facebook/Shimmer/blob/master/shimmer.gif?raw=true)\n\n## Installation\n\n```sh\nyarn add react-native-shimmer\ncd ios \u0026\u0026 pod install\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstallation for React Native \u003c= 0.59\u003c/summary\u003e\n\n### Option: With [CocoaPods](https://cocoapods.org/)\n\nAdd the following to your `Podfile` and run `pod update`:\n\n```\npod 'react-native-shimmer', :path =\u003e 'node_modules/react-native-shimmer'\n```\n\n### Option: With `react-native link`\n\n`$ react-native link react-native-shimmer`\n\n### Option: Manually\n\n#### iOS\n\nAdd `ios/RNShimmer.xcodeproj` to **Libraries** and add `libRNShimmer.a` to **Link Binary With Libraries** under **Build Phases**. [More info and screenshots about how to do this is available in the React Native documentation](http://facebook.github.io/react-native/docs/linking-libraries-ios.html#content).\n\n#### Android\n\n- Edit `android/settings.gradle` to look like this (without the +):\n\n```diff\nrootProject.name = 'MyApp'\n\ninclude ':app'\n\n+ include ':react-native-shimmer'\n+ project(':react-native-shimmer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-shimmer/android')\n```\n\n- Edit `android/app/build.gradle` (note: **app** folder) to look like this:\n\n```diff\napply plugin: 'com.android.application'\n\nandroid {\n  ...\n}\n\ndependencies {\n  compile fileTree(dir: 'libs', include: ['*.jar'])\n  compile \"com.android.support:appcompat-v7:23.0.1\"\n  compile \"com.facebook.react:react-native:+\"  // From node_modules\n+ compile project(':react-native-shimmer')\n}\n```\n\n- Edit your `MainApplication.java` (deep in `android/app/src/main/java/...`) to look like this (note **two** places to edit):\n\n```diff\npackage com.myapp;\n\n+ import com.oblador.shimmer.RNShimmerPackage;\n\n....\n\n  @Override\n  protected List\u003cReactPackage\u003e getPackages() {\n    return Arrays.\u003cReactPackage\u003easList(\n      new MainReactPackage()\n+   , new RNShimmerPackage()\n    );\n  }\n\n}\n```\n\u003c/details\u003e\n\n## Usage\n\nNOTE: `Shimmer` may only have one child.\n\n```js\nimport Shimmer from 'react-native-shimmer';\n\n\u003cShimmer\u003e\n  \u003cText\u003eLoading...\u003c/Text\u003e\n\u003c/Shimmer\u003e;\n```\n\n### Properties\n\n| Prop                    | Description                                                                            | Default |\n| ----------------------- | -------------------------------------------------------------------------------------- | ------- |\n| **`animating`**         | Whether or not to show shimmering effect.                                              | `true`  |\n| **`direction`**         | The direction of shimmering animation, valid values are `up`, `down`, `left`, `right`. | `right` |\n| **`duration`**          | The shimmering animation duration in milliseconds.                                     | `1000`  |\n| **`pauseDuration`**     | The time interval between shimmerings in milliseconds.                                 | `400`   |\n| **`animationOpacity`**  | The opacity of the content while it is shimmering.                                     | `1`     |\n| **`opacity`**           | The opacity of the content before it is shimmering.                                    | `0.5`   |\n| **`highlightLength`**   | The highlight length of shimmering. Range of 0–1. _iOS only_                           | `1`     |\n| **`beginFadeDuration`** | The duration of the fade used when shimmer begins. _iOS only_                          | `0`     |\n| **`endFadeDuration`**   | The duration of the fade used when shimmer ends. _iOS only_                            | `0`     |\n| **`tilt`**              | The tilt angle of the highlight, in degrees. _Android only_                            | `0`     |\n| **`intensity`**         | The intensity of the highlight mask. Range of 0–1. _Android only_                      | `0`     |\n\n## License\n\n[MIT License](http://opensource.org/licenses/mit-license.html). Shimmer is under BSD license. © Joel Arvidsson 2016 - present\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblador%2Freact-native-shimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foblador%2Freact-native-shimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblador%2Freact-native-shimmer/lists"}