{"id":21540045,"url":"https://github.com/robinpowered/react-native-android-image-polyfill","last_synced_at":"2025-04-10T03:27:02.841Z","repository":{"id":57335228,"uuid":"75134150","full_name":"robinpowered/react-native-android-image-polyfill","owner":"robinpowered","description":"An Image component that polyfills onError behavior","archived":false,"fork":false,"pushed_at":"2019-08-22T12:34:14.000Z","size":4,"stargazers_count":6,"open_issues_count":3,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T06:47:08.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/facebook/react-native/issues/7440","language":"JavaScript","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/robinpowered.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}},"created_at":"2016-11-30T00:13:17.000Z","updated_at":"2019-05-12T01:15:25.000Z","dependencies_parsed_at":"2022-08-31T02:01:14.824Z","dependency_job_id":null,"html_url":"https://github.com/robinpowered/react-native-android-image-polyfill","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-android-image-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-android-image-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-android-image-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-android-image-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinpowered","download_url":"https://codeload.github.com/robinpowered/react-native-android-image-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248150099,"owners_count":21055856,"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-11-24T04:17:04.225Z","updated_at":"2025-04-10T03:27:02.813Z","avatar_url":"https://github.com/robinpowered.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"An Image component to polyfill Android's `onError` callback.\n\nThere are some blocking challenges with the Fresco library used for Android's images. This acts as a solution by using `Image.prefetch`, which will indicate if an image fails to resolve. Further discussion can be found in https://github.com/facebook/react-native/issues/7440#issuecomment-263740877.\n\n# Installation\n\n```\nnpm install react-native-android-image-polyfill --save\n```\n\n# Usage\n\n```js\nimport Image from 'react-native-android-image-polyfill';\n\n// Use it like a normal image\n\nclass YourComponent extends React.Component {\n  render () {\n    return (\n      \u003cImage\n        source={{uri: 'some image'}}\n        onError={() =\u003e alert('Failed!')}\n      /\u003e\n    );\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinpowered%2Freact-native-android-image-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinpowered%2Freact-native-android-image-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinpowered%2Freact-native-android-image-polyfill/lists"}