It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState, useEffect } from "react"; | |
| import { AsyncStorage } from "react-native"; | |
| function useAsyncStorage(key, initialValue) { | |
| const [storedValue, setStoredValue] = useState(initialValue); | |
| useEffect(() => { | |
| AsyncStorage.getItem(key) | |
| .then(value => { | |
| if (value === null) return initialValue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\SESSION_NAME] | |
| ; Default Foreground | |
| "Colour0"="217,216,216" | |
| ; Default Bold Foreground | |
| "Colour1"="217,216,216" | |
| ; Default Background | |
| "Colour2"="28,28,28" |