Home
last modified time | relevance | path

Searched refs:createContext (Results 1 – 25 of 48) sorted by relevance

12

/expo/apps/native-component-list/src/screens/ExpoMaps/context/
H A DProviderContext.ts2 import { createContext } from 'react';
4 const ProviderContext = createContext<Providers>('google');
/expo/docs/providers/
H A Dpage-metadata.ts1 import { createContext, useContext } from 'react';
5 export const PageMetadataContext = createContext<PageMetadata>({});
H A Dpage-api-version.tsx2 import { createContext, PropsWithChildren, useCallback, useContext } from 'react';
7 export const PageApiVersionContext = createContext({
/expo/home/utils/
H A DInitialDataContext.tsx1 import React, { useState, createContext, useContext } from 'react';
12 const InitialDataContext = createContext<ContextValue | null>(null);
H A DAccountNameContext.tsx2 import React, { useState, createContext, useContext, useEffect } from 'react';
9 const AccountNameContext = createContext<AccountNameContextValue | null>(null);
/expo/packages/expo-dev-launcher/bundle/providers/
H A DUpdatesConfigProvider.tsx16 const Context = React.createContext<EXUpdatesConfig>(defaultUpdatesConfig);
25 const SetConfigContext = React.createContext<SetUpdatesConfigContext>(() => {});
H A DCrashReportProvider.tsx5 const Context = React.createContext<CrashReport | null>(null);
H A DBuildInfoProvider.tsx5 const Context = React.createContext<BuildInfo | null>(null);
H A DUserContextProvider.tsx24 const ActionsContext = React.createContext<UserActionsContext | null>(null);
25 const Context = React.createContext<UserContext>(null);
H A DQueryProvider.tsx19 const QueryOptionsContext = React.createContext<QueryOptionsContextProps | null>(null);
H A DPendingDeepLinkProvider.tsx13 const Context = React.createContext<PendingDeepLinkContext | null>(null);
H A DDevSessionsProvider.tsx19 const Context = React.createContext<DevSessionsContext | null>(null);
H A DDevMenuPreferencesProvider.tsx18 const Context = React.createContext<DevMenuPreferencesContext | null>(null);
/expo/home/menu/
H A DDevMenuBottomSheetContext.ts8 const DevMenuBottomSheetContext = React.createContext<Context | null>(null);
/expo/docs/components/page-higher-order/
H A DwithHeadingManager.tsx5 export const HeadingsContext = React.createContext<HeadingManager | null>(null);
/expo/packages/expo-dev-menu/app/hooks/
H A DuseAppInfo.tsx5 const AppInfoContext = React.createContext<AppInfo | null>(null);
H A DuseMenuPreferences.tsx9 const MenuPreferencesContext = React.createContext<DevMenu.MenuPreferences>(defaultMenuPreferences);
/expo/packages/@expo/metro-runtime/build/error-overlay/Data/
H A DLogContext.js11 exports.LogContext = react_1.default.createContext(null);
/expo/apps/router-e2e/__e2e__/auth/
H A Dctx.tsx5 const AuthContext = React.createContext(null);
/expo/packages/expo-dev-launcher/bundle/providers/__mocks__/
H A DQueryProvider.tsx32 const QueryOptionsContext = React.createContext<QueryOptionsContextProps | null>(null);
/expo/docs/ui/components/Text/
H A DwithAnchor.tsx8 createContext,
20 export const AnchorContext = createContext<GithubSlugger | null>(null);
/expo/packages/@expo/metro-runtime/src/error-overlay/Data/
H A DLogContext.tsx8 export const LogContext = React.createContext<{
/expo/packages/expo-dev-client-components/src/
H A DuseExpoTheme.tsx8 const ThemeContext = React.createContext<Theme>('light');
/expo/packages/expo-dev-menu/vendored/react-native-safe-area-context/src/
H A DSafeAreaContext.tsx6 export const SafeAreaInsetsContext = React.createContext<EdgeInsets | null>(
11 export const SafeAreaFrameContext = React.createContext<Rect | null>(null);
/expo/packages/expo-router/build/
H A DRoute.js32 const CurrentRouteContext = react_1.default.createContext(null);

12