{"id":4220,"url":"https://github.com/nihgwu/react-native-flanimatedimage","last_synced_at":"2025-04-19T18:07:32.232Z","repository":{"id":57337050,"uuid":"68118698","full_name":"nihgwu/react-native-flanimatedimage","owner":"nihgwu","description":"FLAnimatedImage for React Native","archived":false,"fork":false,"pushed_at":"2017-11-19T08:59:49.000Z","size":45,"stargazers_count":51,"open_issues_count":3,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T22:44:12.478Z","etag":null,"topics":["flanimatedimage","gif","react-native"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/nihgwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-13T14:57:18.000Z","updated_at":"2024-05-27T21:46:42.000Z","dependencies_parsed_at":"2022-09-12T10:00:27.666Z","dependency_job_id":null,"html_url":"https://github.com/nihgwu/react-native-flanimatedimage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihgwu%2Freact-native-flanimatedimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihgwu%2Freact-native-flanimatedimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihgwu%2Freact-native-flanimatedimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihgwu%2Freact-native-flanimatedimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nihgwu","download_url":"https://codeload.github.com/nihgwu/react-native-flanimatedimage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235130,"owners_count":21235157,"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":["flanimatedimage","gif","react-native"],"created_at":"2024-01-05T20:17:04.896Z","updated_at":"2025-04-16T11:32:29.536Z","avatar_url":"https://github.com/nihgwu.png","language":"Objective-C","readme":"# react-native-flanimatedimage\nFLAnimatedImage for React Native\n\nThis module is modified from https://github.com/browniefed/react-native-flanimatedimage with the following changes: \n* use _Carthage_ or _CocoaPods_ for FLAnimatedImage dependency\n* async image loading\n* return the image size `onLoadEnd`\n\n## Install\n\n**You have to install [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage) first** via _Carthage_ or If you're using CocoaPods, you can put the following in your Podfile:\n\n```\npod 'FLAnimatedImage'\n```\n\nthen\n\n```shell\nnpm install react-native-flanimatedimage --save\n```\n\nIf you are using react-native@0.40 or below\n```shell\nnpm install react-native-flanimatedimage@0.0.3 --save\n```\n\n## Link\n\nIn XCode, in the project navigator:\n- Right click _Libraries_\n- Add Files to _[your project's name]_\n- Go to `node_modules/react-native-flanimatedimage/RNFLAnimatedImage`\n- Add the `.xcodeproj` file\n\nIn XCode, in the project navigator, select your project.\n- Add the `libRNFLAnimatedImage.a` from the _deviceinfo_ project to your project's _Build Phases ➜ Link Binary With Libraries_\n\n**If your `Catrhage`/`Pods` folder is not under `ios` folder, please modify the `Headers Search Paths` in `Build Settings - Search Paths - Header Search Paths`**\n- Click `.xcodeproj` file you added before in the project navigator and go the _Build Settings_ tab. Make sure _All_ is toggled on (instead of _Basic_).\n- Look for _Header Search Paths_ and add the path where the `FLAnimatedImage`'s header files are placed. \n\n## Usage\n\n```js\nimport FLAnimatedImage from 'react-native-flanimatedimage';\n\n...\n  onLoadEnd = (e) =\u003e {\n    if (!e.nativeEvent.size) return;\n    const { width, height } = e.nativeEvent.size;\n    this.setState({\n      width,\n      height,\n    });\n  }\n...\n  \u003cFLAnimatedImage style={style} source={source} onLoadEnd={this.onLoadEnd} /\u003e\n...\n```\n","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihgwu%2Freact-native-flanimatedimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnihgwu%2Freact-native-flanimatedimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihgwu%2Freact-native-flanimatedimage/lists"}