Changeset View
Changeset View
Standalone View
Standalone View
native/root.react.js
Show All 21 Lines | |||||
} from 'react-native-safe-area-context'; | } from 'react-native-safe-area-context'; | ||||
import { Provider } from 'react-redux'; | import { Provider } from 'react-redux'; | ||||
import { PersistGate as ReduxPersistGate } from 'redux-persist/es/integration/react.js'; | import { PersistGate as ReduxPersistGate } from 'redux-persist/es/integration/react.js'; | ||||
import { ChatMentionContextProvider } from 'lib/components/chat-mention-provider.react.js'; | import { ChatMentionContextProvider } from 'lib/components/chat-mention-provider.react.js'; | ||||
import { EditUserAvatarProvider } from 'lib/components/edit-user-avatar-provider.react.js'; | import { EditUserAvatarProvider } from 'lib/components/edit-user-avatar-provider.react.js'; | ||||
import { ENSCacheProvider } from 'lib/components/ens-cache-provider.react.js'; | import { ENSCacheProvider } from 'lib/components/ens-cache-provider.react.js'; | ||||
import { FarcasterDataHandler } from 'lib/components/farcaster-data-handler.react.js'; | import { FarcasterDataHandler } from 'lib/components/farcaster-data-handler.react.js'; | ||||
import { FIDProvider } from 'lib/components/fid-provider.react.js'; | |||||
import IntegrityHandler from 'lib/components/integrity-handler.react.js'; | import IntegrityHandler from 'lib/components/integrity-handler.react.js'; | ||||
import KeyserverConnectionsHandler from 'lib/components/keyserver-connections-handler.js'; | import KeyserverConnectionsHandler from 'lib/components/keyserver-connections-handler.js'; | ||||
import { MediaCacheProvider } from 'lib/components/media-cache-provider.react.js'; | import { MediaCacheProvider } from 'lib/components/media-cache-provider.react.js'; | ||||
import { NeynarClientProvider } from 'lib/components/neynar-client-provider.react.js'; | import { NeynarClientProvider } from 'lib/components/neynar-client-provider.react.js'; | ||||
import PrekeysHandler from 'lib/components/prekeys-handler.react.js'; | import PrekeysHandler from 'lib/components/prekeys-handler.react.js'; | ||||
import { StaffContextProvider } from 'lib/components/staff-provider.react.js'; | import { StaffContextProvider } from 'lib/components/staff-provider.react.js'; | ||||
import { IdentitySearchProvider } from 'lib/identity-search/identity-search-context.js'; | import { IdentitySearchProvider } from 'lib/identity-search/identity-search-context.js'; | ||||
import { CallKeyserverEndpointProvider } from 'lib/keyserver-conn/call-keyserver-endpoint-provider.react.js'; | import { CallKeyserverEndpointProvider } from 'lib/keyserver-conn/call-keyserver-endpoint-provider.react.js'; | ||||
▲ Show 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | <GestureHandlerRootView style={styles.app}> | ||||
<NavContext.Provider value={navContext}> | <NavContext.Provider value={navContext}> | ||||
<RootContext.Provider value={rootContext}> | <RootContext.Provider value={rootContext}> | ||||
<InputStateContainer> | <InputStateContainer> | ||||
<MessageEditingContextProvider> | <MessageEditingContextProvider> | ||||
<SafeAreaProvider initialMetrics={initialWindowMetrics}> | <SafeAreaProvider initialMetrics={initialWindowMetrics}> | ||||
<ActionSheetProvider> | <ActionSheetProvider> | ||||
<ENSCacheProvider provider={provider}> | <ENSCacheProvider provider={provider}> | ||||
<NeynarClientProvider apiKey={neynarKey}> | <NeynarClientProvider apiKey={neynarKey}> | ||||
<FIDProvider> | |||||
<MediaCacheProvider | <MediaCacheProvider | ||||
persistence={filesystemMediaCache} | persistence={filesystemMediaCache} | ||||
> | > | ||||
<EditUserAvatarProvider> | <EditUserAvatarProvider> | ||||
<NativeEditThreadAvatarProvider> | <NativeEditThreadAvatarProvider> | ||||
<MarkdownContextProvider> | <MarkdownContextProvider> | ||||
<MessageSearchProvider> | <MessageSearchProvider> | ||||
<BottomSheetProvider> | <BottomSheetProvider> | ||||
<RegistrationContextProvider> | <RegistrationContextProvider> | ||||
<SQLiteDataHandler /> | <SQLiteDataHandler /> | ||||
<ConnectedStatusBar /> | <ConnectedStatusBar /> | ||||
<ReduxPersistGate | <ReduxPersistGate | ||||
persistor={getPersistor()} | persistor={getPersistor()} | ||||
> | > | ||||
{gated} | {gated} | ||||
</ReduxPersistGate> | </ReduxPersistGate> | ||||
<PersistedStateGate> | <PersistedStateGate> | ||||
<KeyserverConnectionsHandler | <KeyserverConnectionsHandler | ||||
socketComponent={Socket} | socketComponent={Socket} | ||||
detectUnsupervisedBackgroundRef={ | detectUnsupervisedBackgroundRef={ | ||||
detectUnsupervisedBackgroundRef | detectUnsupervisedBackgroundRef | ||||
} | } | ||||
/> | /> | ||||
<VersionSupportedChecker /> | <VersionSupportedChecker /> | ||||
<PrekeysHandler /> | <PrekeysHandler /> | ||||
<ReportHandler /> | <ReportHandler /> | ||||
<FarcasterDataHandler /> | <FarcasterDataHandler /> | ||||
</PersistedStateGate> | </PersistedStateGate> | ||||
{navigation} | {navigation} | ||||
</RegistrationContextProvider> | </RegistrationContextProvider> | ||||
</BottomSheetProvider> | </BottomSheetProvider> | ||||
</MessageSearchProvider> | </MessageSearchProvider> | ||||
</MarkdownContextProvider> | </MarkdownContextProvider> | ||||
</NativeEditThreadAvatarProvider> | </NativeEditThreadAvatarProvider> | ||||
</EditUserAvatarProvider> | </EditUserAvatarProvider> | ||||
</MediaCacheProvider> | </MediaCacheProvider> | ||||
</FIDProvider> | |||||
</NeynarClientProvider> | </NeynarClientProvider> | ||||
</ENSCacheProvider> | </ENSCacheProvider> | ||||
</ActionSheetProvider> | </ActionSheetProvider> | ||||
</SafeAreaProvider> | </SafeAreaProvider> | ||||
</MessageEditingContextProvider> | </MessageEditingContextProvider> | ||||
</InputStateContainer> | </InputStateContainer> | ||||
</RootContext.Provider> | </RootContext.Provider> | ||||
</NavContext.Provider> | </NavContext.Provider> | ||||
Show All 28 Lines |