{"id":17957674,"url":"https://github.com/evanbacon/expo-touch-bar-example","last_synced_at":"2025-03-25T02:31:53.447Z","repository":{"id":47804420,"uuid":"243658895","full_name":"EvanBacon/expo-touch-bar-example","owner":"EvanBacon","description":"Example of creating a custom button in the touch bar using Expo/Electron","archived":false,"fork":false,"pushed_at":"2021-08-12T22:54:37.000Z","size":2352,"stargazers_count":8,"open_issues_count":10,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T07:32:40.864Z","etag":null,"topics":["electron","expo","react-native","touch-bar"],"latest_commit_sha":null,"homepage":"","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/EvanBacon.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}},"created_at":"2020-02-28T02:10:10.000Z","updated_at":"2025-01-13T09:01:21.000Z","dependencies_parsed_at":"2022-09-08T15:51:21.613Z","dependency_job_id":null,"html_url":"https://github.com/EvanBacon/expo-touch-bar-example","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/EvanBacon%2Fexpo-touch-bar-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanBacon%2Fexpo-touch-bar-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanBacon%2Fexpo-touch-bar-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanBacon%2Fexpo-touch-bar-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvanBacon","download_url":"https://codeload.github.com/EvanBacon/expo-touch-bar-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245385556,"owners_count":20606669,"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":["electron","expo","react-native","touch-bar"],"created_at":"2024-10-29T10:56:01.103Z","updated_at":"2025-03-25T02:31:53.154Z","avatar_url":"https://github.com/EvanBacon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# expo-touch-bar-example\nExample of creating a custom button in the touch bar using Expo/Electron\n\n- `expo init myProject`\n- `npx @expo/electron-adapter`\n- `yarn expo-electron customize`\n- `yarn add react-touchbar-electron`\n\n- Modify `electron/main/index.js`\n\n```diff\n+ import { touchBarWrapper } from 'react-touchbar-electron';\n\nfunction createMainWindow() {\n  const browserWindow = new BrowserWindow({ webPreferences: { nodeIntegration: true } });\n+  touchBarWrapper(browserWindow);\n\n```\n\n- Modify `App.js`\n```diff\nimport React from 'react';\nimport { Text, View } from 'react-native';\n+ import { TouchBarProvider, Button, TouchBar } from 'react-touchbar-electron';\n\nfunction App() {\n  return (\n    \u003cView\u003e\n+      \u003cTouchBar\u003e\n+        \u003cButton label=\"expo is cool\" onClick={() =\u003e {}} /\u003e\n+      \u003c/TouchBar\u003e\n      \u003cText\u003eOpen up App.js to start working on your app!\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n}\n\n+ export default () =\u003e \u003cTouchBarProvider\u003e\u003cApp /\u003e\u003c/TouchBarProvider\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanbacon%2Fexpo-touch-bar-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanbacon%2Fexpo-touch-bar-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanbacon%2Fexpo-touch-bar-example/lists"}