MCPcopy Create free account
hub / github.com/expo/examples / toggleMode

Function toggleMode

with-camera/App.tsx:53–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 };
52
53 const toggleMode = () => {
54 setMode((prev) => (prev === "picture" ? "video" : "picture"));
55 };
56
57 const toggleFacing = () => {
58 setFacing((prev) => (prev === "back" ? "front" : "back"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected