Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bravekingzhang/gemini-pro-chatbot
/ functions
Functions
89 in github.com/bravekingzhang/gemini-pro-chatbot
⨍
Functions
89
◇
Types & classes
9
↓ 8 callers
Function
loadAgents
()
utils/storage.ts:22
↓ 7 callers
Function
useTheme
()
contexts/ThemeContext.tsx:69
↓ 5 callers
Function
saveChat
(chat: Chat)
utils/storage.ts:62
↓ 4 callers
Function
loadChats
()
utils/storage.ts:81
↓ 4 callers
Function
useColorScheme
()
hooks/useColorScheme.web.ts:7
↓ 2 callers
Function
handleDeleteChat
(chat: Chat)
app/chats.tsx:46
↓ 2 callers
Function
handleStartChat
(agent: Agent)
app/(tabs)/agent.tsx:48
↓ 2 callers
Function
saveItems
(newItems: DiscoverItem[])
app/(tabs)/discover.tsx:72
↓ 2 callers
Function
saveTheme
(isDark: boolean)
contexts/ThemeContext.tsx:49
↓ 2 callers
Function
streamCompletion
( messages: ChatMessage[], onChunk: (chunk: string) => void, onError: (error: any) => void, onComplete
utils/gemini.ts:14
↓ 2 callers
Function
useThemeColor
( props: { light?: string; dark?: string }, colorName: keyof typeof Colors.light & keyof typeof Colors.dar
hooks/useThemeColor.ts:9
↓ 1 callers
Function
deleteAgent
(agentId: string)
utils/storage.ts:50
↓ 1 callers
Function
deleteChat
(chatId: string)
utils/storage.ts:91
↓ 1 callers
Function
formatDate
(timestamp: number)
app/chats.tsx:76
↓ 1 callers
Function
generateCompletion
(messages: ChatMessage[])
utils/gemini.ts:138
↓ 1 callers
Function
handleDeleteAgent
(agent: Agent)
app/(tabs)/agent.tsx:55
↓ 1 callers
Function
handleEditAgent
(agent: Agent)
app/(tabs)/agent.tsx:44
↓ 1 callers
Function
handleLike
(id: string)
app/(tabs)/discover.tsx:121
↓ 1 callers
Function
handleOpenChat
(chat: Chat)
app/chats.tsx:69
↓ 1 callers
Function
handleShare
(item: DiscoverItem)
app/(tabs)/discover.tsx:111
↓ 1 callers
Function
initializeAgents
()
utils/storage.ts:8
↓ 1 callers
Function
loadAgent
()
app/agent/[id].tsx:50
↓ 1 callers
Function
loadAgentAndChat
()
app/(tabs)/index.tsx:97
↓ 1 callers
Function
loadApiKey
()
app/(tabs)/discover.tsx:52
↓ 1 callers
Function
loadApiKey
()
app/(tabs)/index.tsx:63
↓ 1 callers
Function
loadChatHistory
()
app/chats.tsx:25
↓ 1 callers
Function
loadDefaultAgentAndChat
()
app/(tabs)/index.tsx:133
↓ 1 callers
Function
loadExistingChat
()
app/(tabs)/index.tsx:72
↓ 1 callers
Function
loadInitialAgents
()
app/(tabs)/agent.tsx:25
↓ 1 callers
Function
loadItems
()
app/(tabs)/discover.tsx:61
↓ 1 callers
Function
loadSettings
()
app/(tabs)/settings.tsx:40
↓ 1 callers
Function
loadTheme
()
contexts/ThemeContext.tsx:31
↓ 1 callers
Function
moveDirectories
(userInput)
scripts/reset-project.js:48
↓ 1 callers
Function
renderContent
()
components/Message.tsx:35
↓ 1 callers
Function
saveAgent
(agent: Agent)
utils/storage.ts:32
↓ 1 callers
Function
updateMessage
(chatId: string, messageId: string, newContent: string)
utils/storage.ts:104
↓ 1 callers
Function
useBottomTabOverflow
()
components/ui/TabBarBackground.tsx:4
Function
AgentEditScreen
()
app/agent/[id].tsx:22
Function
AgentScreen
()
app/(tabs)/agent.tsx:17
Function
BlurTabBarBackground
()
components/ui/TabBarBackground.ios.tsx:6
Function
ChatScreen
()
app/(tabs)/index.tsx:39
Function
ChatsScreen
()
app/chats.tsx:16
Function
CodeBlock
({ code, language = 'javascript' })
components/CodeBlock.tsx:11
Function
Collapsible
({ children, title }: PropsWithChildren & { title: string })
components/Collapsible.tsx:10
Function
DiscoverScreen
()
app/(tabs)/discover.tsx:39
Function
ExternalLink
({ href, ...rest }: Props)
components/ExternalLink.tsx:8
Function
HapticTab
(props: BottomTabBarButtonProps)
components/HapticTab.tsx:5
Function
HelloWave
()
components/HelloWave.tsx:13
Function
IconSymbol
({ name, size = 24, color, style, }: { name: IconSymbolName; size?: number; color: string | Opaq
components/ui/IconSymbol.tsx:30
Function
IconSymbol
({ name, size = 24, color, style, weight = 'regular', }: { name: SymbolViewProps['name']; size?:
components/ui/IconSymbol.ios.tsx:4
Function
Message
({ message, onEdit, onRegenerate, onCopy })
components/Message.tsx:16
Function
NotFoundScreen
()
app/+not-found.tsx:7
Function
ParallaxScrollView
({ children, headerImage, headerBackgroundColor, }: Props)
components/ParallaxScrollView.tsx:21
Function
RootLayout
()
app/_layout.tsx:50
Function
RootLayoutNav
()
app/_layout.tsx:7
Function
SettingsScreen
()
app/(tabs)/settings.tsx:28
Function
TabLayout
()
app/(tabs)/_layout.tsx:8
Function
ThemeProvider
({ children }: { children: React.ReactNode })
contexts/ThemeContext.tsx:15
Function
ThemedText
({ style, lightColor, darkColor, type = 'default', ...rest }: ThemedTextProps)
components/ThemedText.tsx:11
Function
ThemedView
({ style, lightColor, darkColor, ...otherProps }: ThemedViewProps)
components/ThemedView.tsx:10
Method
createReactActivityDelegate
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] * which allows you to enable New Architecture with a s
android/app/src/main/java/com/your/app/MainActivity.kt:36
Method
getJSMainModuleName
android/app/src/main/java/com/your/app/MainApplication.kt:31
Method
getMainComponentName
* Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */
android/app/src/main/java/com/your/app/MainActivity.kt:30
Method
getPackages
android/app/src/main/java/com/your/app/MainApplication.kt:24
Method
getUseDeveloperSupport
android/app/src/main/java/com/your/app/MainApplication.kt:33
Function
handleCancelEdit
()
components/Message.tsx:30
Function
handleCopyMessage
(content: string)
app/(tabs)/index.tsx:338
Function
handleCreateAgent
()
app/(tabs)/agent.tsx:30
Function
handleEditMessage
(messageId: string, newContent: string)
app/(tabs)/index.tsx:265
Function
handleGenerate
()
app/(tabs)/discover.tsx:80
Function
handleGetApiKey
()
app/(tabs)/settings.tsx:123
Function
handleNewChat
()
app/(tabs)/index.tsx:347
Function
handleRegenerateMessage
(messageId: string)
app/(tabs)/index.tsx:281
Function
handleReset
()
app/(tabs)/settings.tsx:87
Function
handleSave
()
app/(tabs)/settings.tsx:64
Function
handleSave
()
app/agent/[id].tsx:58
Function
handleSaveEdit
()
components/Message.tsx:21
Function
handleSend
()
app/(tabs)/index.tsx:188
Method
invokeDefaultOnBackPressed
* Align the back button behavior with Android S * where moving root activities to background instead of finishing activities. * @see <a href="
android/app/src/main/java/com/your/app/MainActivity.kt:52
Method
onConfigurationChanged
android/app/src/main/java/com/your/app/MainApplication.kt:53
Method
onCreate
android/app/src/main/java/com/your/app/MainActivity.kt:15
Method
onCreate
android/app/src/main/java/com/your/app/MainApplication.kt:43
Function
pickImage
()
app/(tabs)/index.tsx:169
Function
renderAgentItem
({ item: agent }: { item: Agent })
app/(tabs)/agent.tsx:82
Function
renderChatItem
({ item: chat }: { item: Chat })
app/chats.tsx:85
Function
renderEmptyState
()
app/(tabs)/index.tsx:365
Function
renderItem
({ item }: { item: DiscoverItem })
app/(tabs)/discover.tsx:129
Function
toggleTheme
()
contexts/ThemeContext.tsx:58
Function
useBottomTabOverflow
()
components/ui/TabBarBackground.ios.tsx:18