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

Function initNamedImages

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

Source from the content-addressed store, hash-verified

90
91let namedImages
92const initNamedImages = () => {
93 if (process.platform !== 'darwin' || namedImages) return
94 namedImages = {
95 reload: icon('NSTouchBarRefreshTemplate', { height: 20 }),
96 toggleElementInspector: icon('NSTouchBarQuickLookTemplate', { height: 18 }),
97 networkInspect: icon('NSTouchBarRecordStartTemplate', { height: 20 }),
98 prev: icon('NSTouchBarGoBackTemplate', { height: 20 }),
99 next: icon('NSTouchBarGoForwardTemplate', { height: 20 }),
100 }
101}
102
103const setDevMenuMethodsForTouchBar = () => {
104 if (process.platform !== 'darwin') return

Callers 2

setReduxDevToolsMethodsFunction · 0.85

Calls 1

iconFunction · 0.85

Tested by

no test coverage detected