MCPcopy Create free account
hub / github.com/dabbott/react-native-express / saveName

Function saveName

examples/files/app/AsyncStorage.js:24–31  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

22 }
23
24 async function saveName(name) {
25 try {
26 await AsyncStorage.setItem(STORAGE_KEY, name)
27 setName(name)
28 } catch (e) {
29 console.error('Failed to save name.')
30 }
31 }
32
33 useEffect(() => {
34 loadName()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected