{"id":17349203,"url":"https://github.com/co2-git/reactors-file-dialog","last_synced_at":"2025-07-15T09:10:00.702Z","repository":{"id":68259595,"uuid":"78714793","full_name":"co2-git/reactors-file-dialog","owner":"co2-git","description":"File dialog opener View for reactors","archived":false,"fork":false,"pushed_at":"2017-01-30T16:10:08.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T11:44:44.734Z","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/co2-git.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-12T06:14:08.000Z","updated_at":"2017-01-12T06:16:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"818a486e-0673-49f5-b270-8d3149b54eb7","html_url":"https://github.com/co2-git/reactors-file-dialog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/co2-git/reactors-file-dialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Freactors-file-dialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Freactors-file-dialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Freactors-file-dialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Freactors-file-dialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co2-git","download_url":"https://codeload.github.com/co2-git/reactors-file-dialog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Freactors-file-dialog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265424484,"owners_count":23762881,"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-10-15T16:55:02.147Z","updated_at":"2025-07-15T09:10:00.670Z","avatar_url":"https://github.com/co2-git.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"reactors-file-dialog\n===\n\nFile dialog support for reactors (right now only supports desktop, soon to support mobile)\n\n# Usage\n\nYou can directly used our custom React component:\n\n```javascript\nimport FileDialog from 'reactors-file-dialog';\n\n\u003cFileDialog\n  color=\"green\"\n  onChange={(filePaths) =\u003e console.log('selected file(s)', filePaths)}\n  /\u003e\n```\n\nOr create your own:\n\n```javascript\nimport {dialog} from 'reactors-file-dialog';\n\n\u003cView\u003e\n  \u003cText\u003e{this.state.directory}\u003c/Text\u003e\n\n  \u003cButton\n    label=\"Change directory\"\n    onPress={() =\u003e this.setState({\n      directory: await dialog.open(options),\n    })}\n    /\u003e\n\u003c/View\u003e\n```\n\n# Props\n\n- `string color` Color of icon and text\n- `(filePaths: string[]) =\u003e any onChange` Callback function on file selection change\n- `(error: Error) =\u003e any onError` Callback function for eventual errors \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2-git%2Freactors-file-dialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco2-git%2Freactors-file-dialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2-git%2Freactors-file-dialog/lists"}