{"id":31885128,"url":"https://github.com/chaimpaneth/react-native-android-media-browser","last_synced_at":"2025-10-13T04:28:06.542Z","repository":{"id":155323002,"uuid":"632374181","full_name":"chaimPaneth/react-native-android-media-browser","owner":"chaimPaneth","description":"Helper for setting MediaBrowserServiceCompat for android-auto, automative and wearables","archived":false,"fork":false,"pushed_at":"2025-09-05T08:14:35.000Z","size":256,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T09:18:20.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/chaimPaneth.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-25T09:21:03.000Z","updated_at":"2025-04-08T07:54:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2746535-9d0c-476f-90bc-5a0e1e36ec8d","html_url":"https://github.com/chaimPaneth/react-native-android-media-browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chaimPaneth/react-native-android-media-browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaimPaneth%2Freact-native-android-media-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaimPaneth%2Freact-native-android-media-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaimPaneth%2Freact-native-android-media-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaimPaneth%2Freact-native-android-media-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaimPaneth","download_url":"https://codeload.github.com/chaimPaneth/react-native-android-media-browser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaimPaneth%2Freact-native-android-media-browser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013689,"owners_count":26085390,"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-13T02:00:06.723Z","response_time":61,"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":"2025-10-13T04:28:05.442Z","updated_at":"2025-10-13T04:28:06.537Z","avatar_url":"https://github.com/chaimPaneth.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-android-media-browser\n\nA React Native module that provides a Media Browser Service for Android, allowing you to create a custom media browsing experience for Android Auto and Android Automotive OS.\n\n## Installation\n\n1. Install the library using npm or yarn: `npm install react-native-android-media-browser` or `yarn add react-native-android-media-browser`.\n\n2. Link the native module using `react-native link` (if you're using a version of React Native \u003c= 0.59): `react-native link react-native-android-media-browser`.\n\n## Usage\n\n1. Import the `MediaBrowser` module in your JavaScript code:\n```javascript\nimport MediaBrowser, {\n    CONTENT_STYLE_LIST_ITEM,\n    CONTENT_STYLE_GRID_ITEM,\n    CONTENT_STYLE_CATEGORY_LIST_ITEM,\n    CONTENT_STYLE_CATEGORY_GRID_ITEM\n} from 'react-native-android-media-browser';\n```\n\n2. Define your media items hierarchy:\n```javascript\nconst mediaItems = [\n    {\n        id: \"ROOT\",\n        children: [\n            {\n                id: \"Home\",\n                title: \"Home\",\n                subTitle: \"Welcome home!\",\n                icon: \"home.png\",\n                browsableStyle: CONTENT_STYLE_GRID_ITEM,\n                playableStyle: CONTENT_STYLE_LIST_ITEM,\n                playableOrBrowsable: \"BROWSABLE\",\n                children: [\n                    // ... more nested media items\n                ],\n            },\n            // ... other top-level media items\n        ],\n    },\n];\n```\n\n3. Set the media items hierarchy in the MediaBrowser module:\n```javascript\nMediaBrowser.setMediaItems(mediaItems);\n```\n\n4. You can also add, delete, and update media items:\n```javascript\nMediaBrowser.addMediaItem(item);\nMediaBrowser.deleteMediaItem(itemId);\nMediaBrowser.updateMediaItem(item);\n```\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaimpaneth%2Freact-native-android-media-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaimpaneth%2Freact-native-android-media-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaimpaneth%2Freact-native-android-media-browser/lists"}