Home
last modified time | relevance | path

Searched refs:useResolvedValue (Results 1 – 7 of 7) sorted by relevance

/expo/apps/native-component-list/src/screens/
H A DNetworkScreen.tsx6 import { useResolvedValue } from '../utilities/useResolvedValue';
10 const [airplaneMode] = useResolvedValue(Network.isAirplaneModeEnabledAsync);
11 const [networkState] = useResolvedValue(Network.getNetworkStateAsync);
12 const [ip, ipError] = useResolvedValue(Network.getIpAddressAsync);
H A DBrightnessScreen.tsx8 import { useResolvedValue } from '../utilities/useResolvedValue';
13 const [isAvailable, error] = useResolvedValue(Brightness.isAvailableAsync);
39 const [systemBrightness] = useResolvedValue(Brightness.getSystemBrightnessAsync);
H A DMailComposerScreen.tsx7 import { useResolvedValue } from '../utilities/useResolvedValue';
10 const [isAvailable, error] = useResolvedValue(MailComposer.isAvailableAsync);
H A DPedometerScreen.tsx8 import { useResolvedValue } from '../utilities/useResolvedValue';
95 const [isAvailable] = useResolvedValue(Pedometer.isAvailableAsync);
H A DSecureStoreScreen.tsx16 import { useResolvedValue } from '../utilities/useResolvedValue';
19 const [isAvailable, error] = useResolvedValue(SecureStore.isAvailableAsync);
/expo/apps/native-component-list/src/utilities/
H A DuseResolvedValue.ts3 export function useResolvedValue<T>(method: () => Promise<T>): [T | null, Error | null] { function
/expo/apps/native-component-list/src/screens/Contacts/
H A DContactsScreen.tsx13 import { useResolvedValue } from '../../utilities/useResolvedValue';
44 const [isAvailable, error] = useResolvedValue(Contacts.isAvailableAsync);