MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / setTouchBar

Function setTouchBar

app/utils/devMenu.js:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 .map((key) => bar[key])
22 .filter((barItem) => !!barItem)
23const setTouchBar = () => currentWindow.setTouchBar(
24 new TouchBar({
25 items: [
26 ...getBarItems(leftBar),
27 ...(isSliderEnabled ? getBarItems(rightBar) : []),
28 ],
29 }),
30)
31
32const invokeDevMenuMethod = ({ name, args }) => worker && worker.postMessage({ method: 'invokeDevMenuMethod', name, args })
33

Callers 2

setReduxDevToolsMethodsFunction · 0.85

Calls 1

getBarItemsFunction · 0.85

Tested by

no test coverage detected