{"id":19784034,"url":"https://github.com/alkafinance/react-native-modalize-webview","last_synced_at":"2025-04-30T22:31:57.811Z","repository":{"id":37821358,"uuid":"199754257","full_name":"alkafinance/react-native-modalize-webview","owner":"alkafinance","description":"⚛️ React Native modal component that brings swipe to dismiss to WebView","archived":false,"fork":false,"pushed_at":"2023-01-07T08:17:49.000Z","size":11660,"stargazers_count":17,"open_issues_count":25,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T05:34:30.750Z","etag":null,"topics":["react-native","react-native-component","webview"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alkafinance.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":"2019-07-31T01:26:22.000Z","updated_at":"2021-11-24T02:34:38.000Z","dependencies_parsed_at":"2023-02-06T16:02:02.483Z","dependency_job_id":null,"html_url":"https://github.com/alkafinance/react-native-modalize-webview","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/alkafinance%2Freact-native-modalize-webview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-modalize-webview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-modalize-webview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-modalize-webview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alkafinance","download_url":"https://codeload.github.com/alkafinance/react-native-modalize-webview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791702,"owners_count":21644442,"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":["react-native","react-native-component","webview"],"created_at":"2024-11-12T06:10:05.878Z","updated_at":"2025-04-30T22:31:56.927Z","avatar_url":"https://github.com/alkafinance.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-modalize-webview\n\n[![npm version](https://img.shields.io/npm/v/react-native-modalize-webview.svg)](https://www.npmjs.org/package/react-native-modalize-webview)\n[![CircleCI Status](https://img.shields.io/circleci/project/github/alkafinance/react-native-modalize-webview/master.svg)](https://circleci.com/gh/alkafinance/workflows/react-native-modalize-webview/tree/master)\n![license: MIT](https://img.shields.io/npm/l/react-native-modalize-webview.svg)\n![Supports iOS](https://img.shields.io/badge/platforms-ios-lightgrey.svg)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nReact Native modal component that brings swipe to dismiss to WebView.\n\n\u003cimg src=\"./.github/demo.gif\" width=\"auto\" height=\"640\"\u003e\n\n## Getting started\n\n`$ npm install react-native-modalize-webview --save`\n\n## Usage\n\nImport `ModalizeWebView` and use it like the regular [`Modalize` component](https://github.com/jeremybarbet/react-native-modalize/). Provide `WebView` props via `webViewProps` to customize the displayed web page.\n\n```javascript\nimport {ModalizeWebView} from 'react-native-modalize-webview'\n\nfunction MyComponent() {\n  const modalizeRef = useRef(null)\n\n  const handleOpen = useCallback(() =\u003e {\n    if (modalizeRef.current) {\n      modalizeRef.current.open()\n    }\n  }, [])\n\n  return (\n    \u003c\u003e\n      \u003cTouchableOpacity onPress={handleOpen}\u003e\n        \u003cText\u003eOpen the modal\u003c/Text\u003e\n      \u003c/TouchableOpacity\u003e\n\n      \u003cModalizeWebView\n        ref={modalizeRef}\n        handlePosition=\"inside\"\n        webViewProps={{\n          source: {\n            uri: 'https://facebook.github.io/react-native/',\n          },\n        }}\n      /\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n## Props\n\n- [Inherited `Modalize` props...](https://jeremybarbet.github.io/react-native-modalize/#/PROPSMETHODS)\n\n- [`webViewProps`](#webViewProps)\n- [`anchorOffset`](#anchorOffset)\n\n---\n\n# Reference\n\n## Props\n\n### `webViewProps`\n\nConfigures the underlying `WebView` component.\n\n| Type                                                                                                                 | Required |\n| -------------------------------------------------------------------------------------------------------------------- | -------- |\n| [`WebViewProps`](https://github.com/react-native-community/react-native-webview/blob/master/docs/Reference.md#props) | Yes       |\n\n### `anchorOffset`\n\nSpecifies extra offset from top on scroll to an anchor link. Defaults to `16`.\n\n| Type     | Required |\n| -------- | -------- |\n| `number` | No       |\n\n## License\n\n[MIT License](./LICENSE) © Alka, Inc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falkafinance%2Freact-native-modalize-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falkafinance%2Freact-native-modalize-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falkafinance%2Freact-native-modalize-webview/lists"}