{"id":4525,"url":"https://github.com/NativeSH/react-native-console-panel","last_synced_at":"2025-08-04T01:32:40.098Z","repository":{"id":53821043,"uuid":"46544914","full_name":"NativeSH/react-native-console-panel","owner":"NativeSH","description":"simple react native console component","archived":false,"fork":false,"pushed_at":"2021-03-07T10:09:05.000Z","size":5303,"stargazers_count":85,"open_issues_count":1,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T13:50:05.554Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NativeSH.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":"2015-11-20T06:52:17.000Z","updated_at":"2024-03-21T10:49:10.000Z","dependencies_parsed_at":"2022-08-22T06:40:25.464Z","dependency_job_id":null,"html_url":"https://github.com/NativeSH/react-native-console-panel","commit_stats":null,"previous_names":["sospartan/react-native-console-panel"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeSH%2Freact-native-console-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeSH%2Freact-native-console-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeSH%2Freact-native-console-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeSH%2Freact-native-console-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NativeSH","download_url":"https://codeload.github.com/NativeSH/react-native-console-panel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228582488,"owners_count":17940587,"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-01-05T20:17:15.237Z","updated_at":"2024-12-07T08:30:42.650Z","avatar_url":"https://github.com/NativeSH.png","language":"JavaScript","readme":"# React Native Console Panel  \nA Simple debug panel component to view console message right inside the app.  \nThis will be helpful during your react native development.\nThis is a pure react native component ,you can use it in both ios and android .\n\n**Xcode / Android Studio is not a must for React Native app development.**  \nRN developers can simplify tool chain with this component when coding javascript only.  \nYou don't have to open any of Xcode , Android Studio or Chrome dev console for viewing js console message. A javascript editor and a emulator/device are all you need.\n\n## Usage\n### Install from npm :  \n`npm install --save react-native-console-panel`\n\n### Integrate into your app:  \n\n```javascript\n//import the component\nvar ConsolePanel = require('react-native-console-panel').displayWhenDev();\n...\nrender:function(){\n\treturn (\n\t\t\u003cView style={styles.container}\u003e\n        \t...\n        \t\u003cTouchableHighlight style={styles.btn} onPress={this._onPressButton}\u003e\n          \t\u003cText\u003e\n            Hit me!\n          \t\u003c/Text\u003e\n        \t\u003c/TouchableHighlight\u003e\n        \n        \t//Panel will float above your content\n        \t//use top,left to control panel's position \n        \t{ConsolePanel}\n      \u003c/View\u003e\n      );\n```\n* `displayWhenDev()` will return the component or null accroding `__DEV__` flag\n* `displayIgnoreDevVariable()` ignore `__DEV__` variable\n\n### Yellowbox\nThe react-native add a 'Yellowbox' in **v0.16(not release yet)** for showing warn/error messages.**This module disable that by default**.\nIf you want to keep both yellowbox  and console ,you should import like this `require('react-native-console-panel/keep-yellowbox')`.\n\nNow, when you use 'console' to print something , it will be like this:  \n![screenshot](https://github.com/sospartan/react-native-console-panel/raw/master/demo.gif )\n\n### Avaiable props:\n\n```javascript\n\tpropTypes:{\n        limit:React.PropTypes.number,//message limit number\n        open:React.PropTypes.bool,//is open when mounted\n    }\n```\n\n## TO-DOs  \n* \u003cdel\u003eCount unread log when panel is closing\u003c/del\u003e\n* \u003cdel\u003e'clear' button\u003c/del\u003e\n* System infomation shapshot\n* Better looking?\n* ...\n\n**I'm new to Javascript .So any pull request is welcomed!**\n","funding_links":[],"categories":["Components","JavaScript"],"sub_categories":["Build \u0026 Development"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNativeSH%2Freact-native-console-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNativeSH%2Freact-native-console-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNativeSH%2Freact-native-console-panel/lists"}