See defaultConfig for defaults.
Sync state to AsyncStorage so that it persists when an app is closed. Values must be JSON-serializable.
const [thing, setThing] = useAsyncStorage(null);
Key of the item to fetch
Initial state (if key is not found in AsyncStorage)
tuple with [value, setValue]
(calls to setValue
will persist to
AsyncStorage)
Get random users from the https://randomuser.me API.
const users = useRandomUsers();
Generated using TypeDoc
Factory method that creates scutwind from a configuration.
const Thing = () => ( <View style={sw("flex-grow mx-4 bg-gray-100")} /> );