{"id":23715424,"url":"https://github.com/orzhtml/react-native-orzhtml-popup","last_synced_at":"2025-10-08T02:18:11.073Z","repository":{"id":65602178,"uuid":"577232463","full_name":"orzhtml/react-native-orzhtml-popup","owner":"orzhtml","description":"popup","archived":false,"fork":false,"pushed_at":"2023-08-10T15:06:53.000Z","size":1430,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T14:44:06.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/orzhtml.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-12T09:26:43.000Z","updated_at":"2023-01-04T07:57:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"87df74da-1e7b-4063-9bb1-a52ea6a26b41","html_url":"https://github.com/orzhtml/react-native-orzhtml-popup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orzhtml/react-native-orzhtml-popup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Freact-native-orzhtml-popup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Freact-native-orzhtml-popup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Freact-native-orzhtml-popup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Freact-native-orzhtml-popup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orzhtml","download_url":"https://codeload.github.com/orzhtml/react-native-orzhtml-popup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Freact-native-orzhtml-popup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278526242,"owners_count":26001325,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-30T20:56:19.141Z","updated_at":"2025-10-08T02:18:11.068Z","avatar_url":"https://github.com/orzhtml.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-orzhtml-popup\n\n### Alert 提示框\n\n##### 参数\n* `title`：弹窗标题，可以为字符串或者 React 组件。\n* `options`：弹窗配置选项，具体选项如下：\n\n参数名称 | 类型 | 默认值 | 描述\n------ | ------ | ------ | ------\n`message`|\t`string` 或 `React.ReactNode`|`-`|弹窗的提示信息，可以为字符串或者 React 组件。\n`onOk`|`() =\u003e void`|`-`|确认按钮点击后的回调。\n`okText`| `string` | `确认` |确认按钮的文本内容。\n`onCancel`|`() =\u003e void`|`-`|取消按钮点击后的回调。\n`cancelText`|`string`|取消|取消按钮的文本内容。\n`buttons`|`AlertButtonType[]`|`[]`|弹窗的按钮组。\n`alertOptions`|`{ only?: boolean, modal?: boolean, type?: 'zoomIn' | 'zoomOut' | 'fade' | 'custom' | 'none' }`|`{ only: true, modal: true, type: 'zoomIn' }`|弹窗的配置选项。\n\n`AlertButtonType`\n参数\n* `banClosed`：是否禁止关闭弹窗，默认为 false。\n* `onPress`：按钮点击后的回调函数。\n* `style`：按钮的样式类型，可选值为 default、cancel、warning。\n* `text`：按钮的文本内容\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forzhtml%2Freact-native-orzhtml-popup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forzhtml%2Freact-native-orzhtml-popup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forzhtml%2Freact-native-orzhtml-popup/lists"}