{"id":16236844,"url":"https://github.com/santosfrancisco/react-native-debug-on-the-fly","last_synced_at":"2026-04-09T02:31:21.763Z","repository":{"id":149229839,"uuid":"621481665","full_name":"santosfrancisco/react-native-debug-on-the-fly","owner":"santosfrancisco","description":"Tool created to assist in debugging react native applications","archived":false,"fork":false,"pushed_at":"2023-03-30T20:32:28.000Z","size":729,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T22:55:31.171Z","etag":null,"topics":["android","app","debug","ios","javascript","logs","react","react-native","typescript"],"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/santosfrancisco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-03-30T18:49:31.000Z","updated_at":"2023-04-10T18:48:39.000Z","dependencies_parsed_at":"2026-04-05T00:08:09.278Z","dependency_job_id":null,"html_url":"https://github.com/santosfrancisco/react-native-debug-on-the-fly","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"8799f1d6adc71d913001b7a11fdd4e4c975a3ffe"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/santosfrancisco/react-native-debug-on-the-fly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santosfrancisco%2Freact-native-debug-on-the-fly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santosfrancisco%2Freact-native-debug-on-the-fly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santosfrancisco%2Freact-native-debug-on-the-fly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santosfrancisco%2Freact-native-debug-on-the-fly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santosfrancisco","download_url":"https://codeload.github.com/santosfrancisco/react-native-debug-on-the-fly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santosfrancisco%2Freact-native-debug-on-the-fly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["android","app","debug","ios","javascript","logs","react","react-native","typescript"],"created_at":"2024-10-10T13:33:14.409Z","updated_at":"2026-04-09T02:31:21.746Z","avatar_url":"https://github.com/santosfrancisco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-debug-on-the-fly\n\nTool created to assist in debugging react native applications\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.gatsbyjs.org\"\u003e\n    \u003cimg alt=\"Gatsby\" src=\"./example.gif\" width=\"300\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```sh\nnpm install react-native-debug-on-the-fly\n```\n\n## Usage\n\nAdd the DOTF provider on top level of your app\n\n```js\nimport { DOTFProvider } from 'react-native-debug-on-the-fly';\n\n\n//...\n    \u003cDOTFProvider enabled\u003e\n      \u003cApp /\u003e\n    \u003c/DOTFProvider\u003e\n//...\n}\n\n```\n\nTo send logs use the `pushLog` function\n\n```js\nimport * as React from 'react';\nimport { StyleSheet, View, Text, Button } from 'react-native';\nimport { useDOTF } from 'react-native-debug-on-the-fly';\n\nconst Content = () =\u003e {\n  const { pushLog, clear, logs } = useDOTF();\n  return (\n    \u003cView style={styles.container}\u003e\n      \u003cText style={styles.title}\u003eMy app\u003c/Text\u003e\n      \u003cButton\n        title=\"Send log 1\"\n        onPress={() =\u003e\n          pushLog(\n            JSON.stringify(\n              { foo: 'bar', bar: 'foo', obj: { foo: 'bar' } },\n              null,\n              2\n            )\n          )\n        }\n      /\u003e\n      \u003cButton\n        title=\"Send log 2\"\n        onPress={() =\u003e pushLog(`log ${Math.floor(Math.random() * 100)}`)}\n      /\u003e\n    \u003c/View\u003e\n  );\n};\n```\n\n## Table of props\n\n### Provider\n\n| Property | Type      | Description                                                                                                               |\n| -------- | --------- | ------------------------------------------------------------------------------------------------------------------------- |\n| enabled  | `boolean` | Indicates if the tool is enabled and will receive logs. When `false`, the logs are not stored and the tool is not visible |\n\n### Hook\n\n| Property | Type                                | Description                            |\n| -------- | ----------------------------------- | -------------------------------------- |\n| logs     | `{time: string, content: string}[]` | List of logs                           |\n| pushLog  | `() =\u003e void`                        | Function that adds the log to the list |\n| clear    | `() =\u003e void`                        | Clear the log list                     |\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantosfrancisco%2Freact-native-debug-on-the-fly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantosfrancisco%2Freact-native-debug-on-the-fly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantosfrancisco%2Freact-native-debug-on-the-fly/lists"}