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

Function updateSliderContent

app/utils/devMenu.js:189–198  ·  view source on GitHub ↗
(liftedState, dontUpdateTouchBarSlider)

Source from the content-addressed store, hash-verified

187}
188
189export const updateSliderContent = (liftedState, dontUpdateTouchBarSlider) => {
190 if (process.platform !== 'darwin') return
191
192 storeLiftedState = liftedState
193 if (isSliderEnabled && !dontUpdateTouchBarSlider) {
194 const { currentStateIndex, computedStates } = liftedState
195 rightBar.slider.maxValue = computedStates.length - 1
196 rightBar.slider.value = currentStateIndex
197 }
198}

Callers 1

reduxAPI.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected