{"id":4200,"url":"https://github.com/gilbox/react-native-masked-view","last_synced_at":"2025-04-13T05:34:43.773Z","repository":{"id":33144869,"uuid":"36784666","full_name":"gilbox/react-native-masked-view","owner":"gilbox","description":"Masked View Component for React","archived":false,"fork":false,"pushed_at":"2017-06-05T08:17:41.000Z","size":887,"stargazers_count":59,"open_issues_count":5,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T23:03:39.452Z","etag":null,"topics":[],"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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilbox.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-06-03T06:34:20.000Z","updated_at":"2023-10-10T20:38:32.000Z","dependencies_parsed_at":"2022-06-27T06:44:34.036Z","dependency_job_id":null,"html_url":"https://github.com/gilbox/react-native-masked-view","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/gilbox%2Freact-native-masked-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Freact-native-masked-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Freact-native-masked-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Freact-native-masked-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilbox","download_url":"https://codeload.github.com/gilbox/react-native-masked-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360072,"owners_count":21090645,"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:17:04.291Z","updated_at":"2025-04-13T05:34:43.211Z","avatar_url":"https://github.com/gilbox.png","language":"Objective-C","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# react-native-masked-view\n\nMasked View Component for React. Just like a `\u003cView /\u003e` with a mask.\n\n    \u003cMaskedView maskImage=\"mask.png\"\u003e...\u003c/MaskedView\u003e\n\n![screen shot](https://github.com/gilbox/react-native-masked-view/raw/master/masked-view-screenshot.png)\n\n## compatibility\n\n- `0.2.0` is compatible with react-native@0.10.1\n- `0.1.0` is compatible with react-native@0.7.1\n\n## installation\n\n- `npm install react-native-masked-view`\n- `var MaskedView = require('react-native-masked-view');`\n\n... then have a look at [these instructions](https://github.com/chirag04/react-native-dashed-border)\nand adjust accordingly.\n\n## options\n\n- `maskImage`: File name of image asset added to Images.xcassets.\n[See React Docs for instructions on adding images.](https://facebook.github.io/react-native/docs/image.html#adding-static-resources-to-your-app-using-images-xcassets)\n\n**note**: since react@0.6.0-rc the MaskedView element cannot have it's own backgroundColor, but it's children can.\n\n## demo\n\nJust clone this repo, `cd` into `react-native-masked-view` and `npm install`. Then open `MaskedViewDemo.xcodeproj` and click run.\n\n## todo\n\n- add more sizing options\n- add various mask sources: shape, svg, other layers\n- replace `maskImage` prop with `maskSource` prop that works just like `\u003cImage /\u003e`'s `source` prop.\n  (the internal react-native image-related code really should be refactored so it's more easily\n  re-usable outside of `\u003cImage /\u003e`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbox%2Freact-native-masked-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilbox%2Freact-native-masked-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbox%2Freact-native-masked-view/lists"}