{"id":16483691,"url":"https://github.com/pie6k/react-native-toolbox","last_synced_at":"2025-02-28T19:45:13.900Z","repository":{"id":90459646,"uuid":"158488608","full_name":"pie6k/react-native-toolbox","owner":"pie6k","description":"This is set of common react-native tools.","archived":false,"fork":false,"pushed_at":"2018-11-21T23:54:34.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T12:18:13.045Z","etag":null,"topics":["react-native","tools","toolset"],"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/pie6k.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}},"created_at":"2018-11-21T03:59:45.000Z","updated_at":"2020-03-06T16:13:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"307c2db0-9797-4568-81fe-ebbbf80b47c0","html_url":"https://github.com/pie6k/react-native-toolbox","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/pie6k%2Freact-native-toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pie6k%2Freact-native-toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pie6k%2Freact-native-toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pie6k%2Freact-native-toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pie6k","download_url":"https://codeload.github.com/pie6k/react-native-toolbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241215520,"owners_count":19928499,"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","tools","toolset"],"created_at":"2024-10-11T13:14:45.515Z","updated_at":"2025-02-28T19:45:13.881Z","avatar_url":"https://github.com/pie6k.png","language":"TypeScript","readme":"# react-native-toolbox\n\nThis is set of common react-native tools.\n\nHopefully it'll grow with time.\n\n```\nyarn add react-native-toolbox\n```\n\n## Quick showcase\n\n```ts\nimport {\n  alertPromise,\n  confirmChoice,\n  showActionSheetIOS,\n  waitForInteractionsToEnd,\n} from 'react-native-toolbox';\n\nclass SomeComponent extends Component {\n  async showAlert() {\n    await alertPromise({\n      title: 'Title',\n      message: 'Message',\n      closeLabel: 'Close',\n    });\n    console.log('alert is closed now');\n  }\n\n  async deleteSomething() {\n    const isConfirmed = await confirmChoice({\n      title: 'Are you sure?',\n      subtitle: 'This cannot be undone',\n      confirmLabel: 'Remove',\n      cancelLabel: 'Cancel',\n      isDestructive: true, // will make 'Remove' red\n    });\n\n    if (isConfirmed) {\n      callSomeRemoveApi();\n    }\n  }\n\n  showActionSheet() {\n    showActionSheetIOS({\n      title: 'Title',\n      message: 'Some message',\n      options: [\n        {\n          label: 'Option A',\n          isDestructive: false,\n          selectCallback: () =\u003e console.log('Option A selected'),\n        },\n        {\n          label: 'Option A',\n          isDestructive: true,\n          selectCallback: () =\u003e console.log('Option B selected'),\n        },\n      ],\n      cancelLabel: 'Cancel',\n      onCancel: () =\u003e console.log('cancelled'),\n    });\n  }\n\n  async someActionThatHasToBeSmooth() {\n    await waitForInteractionsToEnd();\n\n    // perform heavy operation\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpie6k%2Freact-native-toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpie6k%2Freact-native-toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpie6k%2Freact-native-toolbox/lists"}