(name)
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected