{"id":4641,"url":"https://github.com/danrigsby/react-native-web-container","last_synced_at":"2025-07-28T08:42:10.390Z","repository":{"id":57341382,"uuid":"47513851","full_name":"danrigsby/react-native-web-container","owner":"danrigsby","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-20T14:15:44.000Z","size":3,"stargazers_count":45,"open_issues_count":2,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T15:50:38.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/danrigsby.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-12-06T21:08:42.000Z","updated_at":"2021-08-31T17:05:02.000Z","dependencies_parsed_at":"2022-09-07T16:13:48.164Z","dependency_job_id":null,"html_url":"https://github.com/danrigsby/react-native-web-container","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/danrigsby%2Freact-native-web-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danrigsby%2Freact-native-web-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danrigsby%2Freact-native-web-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danrigsby%2Freact-native-web-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danrigsby","download_url":"https://codeload.github.com/danrigsby/react-native-web-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473112,"owners_count":21109628,"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:18.776Z","updated_at":"2025-04-11T19:56:58.185Z","avatar_url":"https://github.com/danrigsby.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Web"],"readme":"# react-native-web-container\nA wrapper around the React Native WebView to add autoHeight and the ability to sanitize html using [sanitize-html](https://github.com/punkave/sanitize-html)\n## Installation\n\u003e npm install --save react-native-web-container\n\n## Usage\n\n### Example\n```javascript\nimport WebContainer from 'react-native-web-container';\n\nclass MyWebView extends React.Component {\n  render() {\n    let html = '';\n\n    return (\n      \u003cWebContainer\n        style={{flex: 1}}\n        html={html}\n        makeSafe={true}\n        autoHeight={true} /\u003e\n    );\n  }\n}\n```\n### Properties\n| option | values |\n|---|---|\n| autoHeight | (default: `false`) automatically set the height of the WebView to fill the contains and remove the scroll bar |\n| makeSafe | (default: `false`) `false`: will not modify the html, `true`: will sanitize the html using the build in defaults, `object`: define a custom configuration for how to sanitize the html (See [docs](https://github.com/punkave/sanitize-html#how-to-use))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanrigsby%2Freact-native-web-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanrigsby%2Freact-native-web-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanrigsby%2Freact-native-web-container/lists"}