{"id":4047,"url":"https://github.com/voronianski/react-native-effects-view","last_synced_at":"2025-04-05T04:15:12.529Z","repository":{"id":30227173,"uuid":"33778268","full_name":"voronianski/react-native-effects-view","owner":"voronianski","description":"Use iOS8 UIVisualEffectViews's blur and vibrancy with ReactNative","archived":false,"fork":false,"pushed_at":"2022-02-15T03:18:50.000Z","size":4537,"stargazers_count":387,"open_issues_count":8,"forks_count":24,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T03:09:35.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/voronianski.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":"2015-04-11T14:15:40.000Z","updated_at":"2024-11-05T22:54:37.000Z","dependencies_parsed_at":"2022-09-11T12:30:32.049Z","dependency_job_id":null,"html_url":"https://github.com/voronianski/react-native-effects-view","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voronianski%2Freact-native-effects-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voronianski%2Freact-native-effects-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voronianski%2Freact-native-effects-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voronianski%2Freact-native-effects-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voronianski","download_url":"https://codeload.github.com/voronianski/react-native-effects-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284955,"owners_count":20913704,"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-01-05T20:16:59.478Z","updated_at":"2025-04-05T04:15:12.508Z","avatar_url":"https://github.com/voronianski.png","language":"Objective-C","funding_links":[],"categories":["Components","\u003ca name=\"UI:-Native-Modules\"\u003eUI: Native Modules\u003c/a\u003e","组件","Objective-C","Libraries","Others"],"sub_categories":["UI"],"readme":"# ReactNativeEffectsView\n\n[![npm version](http://badge.fury.io/js/react-native-effects-view.svg)](http://badge.fury.io/js/react-native-effects-view)\n\n\u003e Component to make easy use of iOS8 `UIVisualEffectViews` with `UIBlurEffect` and `UIVibrancyEffect` in [ReactNative](http://facebook.github.io/react-native).\n\n\u003cimg src=\"https://raw.githubusercontent.com/voronianski/react-native-effects-view/master/example/UIVisualEffects.png\" width=\"320\" height=\"568\" alt=\"Screenshot\"\u003e\n\n## Install\n\n```bash\nnpm install react-native-effects-view --save\n```\n\n- In XCode right click on project's name and choose `Add Files to..`\n- Go to `node_modules/react-native-effects-view` and select `DVEffects` folder\n- Now you're ready to `require('react-native-effects-view')` inside your app!\n\n## Props\n\n- `blurStyle` _(String)_ - choose one of the following:\n    - `\"light\"` (_default_)\n    - `\"extraLight\"`\n    - `\"dark\"`\n- `vibrantContent` _(ReactElement)_ - render vibrant content inside blurred view.\n\n## Children\n\nAll children of `\u003cEffectsView /\u003e` will be blurred, however you can use it without children and position element on top of background images and other views.\n\n## Example\n\nIn order to see usage example check [`example/EffectsApp`](https://github.com/voronianski/react-native-effects-view/tree/master/example/EffectsApp) folder in XCode (don't forget to run `npm install` inside). It contains the app presented by [screenshot](https://raw.githubusercontent.com/voronianski/react-native-effects-view/master/example/UIVisualEffects.png).\n\n```javascript\nvar React = require('react-native');\nvar EffectsView = require('react-native-effects-view');\nvar { AppRegistry, StyleSheet, View } = React;\n\nvar App = React.createClass({\n    renderVibrant() {\n        return (\n            \u003cView\u003e\n                \u003cText style={styles.text}\u003eDo you feel blurry??\u003c/Text\u003e\n            \u003c/View\u003e\n        );\n    },\n\n    render() {\n        return (\n            \u003cEffectsView \n                style={styles.view} \n                blurStyle=\"dark\" \n                vibrantContent={this.renderVibrant()}\n            \u003e\n                \u003cImage style={styles.bg} source={require('image!bg')} /\u003e\n            \u003c/EffectsView\u003e\n        );\n    }\n});\n\nvar styles = StyleSheet.create({\n    bg: {\n        flex: 1,\n        position: 'absolute',\n        bottom: 0,\n        left: 0,\n        right: 0,\n        top: 0,\n        justifyContent: 'center',\n        alignItems: 'center',\n    },\n    view: {\n        flex: 1\n    },\n    text: {\n        fontSize: 20,\n        color: 'white',\n        textAlign: 'center',\n    },\n});\n\nAppRegistry.registerComponent('App', () =\u003e App);\n```\n\n## References\n\nDemo app is inspired by [UIVisualEffects](https://github.com/ide/UIVisualEffects) repo.\n\n---\n\n**MIT Licensed**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoronianski%2Freact-native-effects-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoronianski%2Freact-native-effects-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoronianski%2Freact-native-effects-view/lists"}