MCPcopy Create free account

hub / github.com/dabit3/react-native-ai / functions

Functions100 in github.com/dabit3/react-native-ai

↓ 9 callersFunctionupdateChatState
(modelLabel: string, updater: (prev: ChatState) => ChatState)
app/src/screens/chat.tsx:50
↓ 4 callersFunctiongetChatState
(modelLabel: string)
app/src/screens/chat.tsx:45
↓ 3 callersFunctioncreateEmptyChatState
()
app/src/screens/chat.tsx:29
↓ 3 callersFunctiongetChatType
(type: Model)
app/src/utils.ts:45
↓ 3 callersFunctiongetDynamicTextStyle
(baseType:string, type:string, theme:any)
app/src/screens/settings.tsx:196
↓ 3 callersFunctiongetDynamicViewStyle
(baseType:string, type:string, theme:any)
app/src/screens/settings.tsx:205
↓ 3 callersFunctiongetEventSource
({ headers, body, type } : { headers?: any, body: any, type: string })
app/src/utils.ts:5
↓ 3 callersFunctionhandlePresentModalPress
()
app/App.tsx:67
↓ 2 callersFunctioncheckThread
(_runId, _threadId)
app/src/screens/assistant.tsx:152
↓ 2 callersFunctioncloseModal
()
app/App.tsx:62
↓ 2 callersFunctiongenerateGptResponse
()
app/src/screens/chat.tsx:74
↓ 2 callersFunctiongetInlineData
(part: any)
server/src/images/gemini.ts:12
↓ 2 callersFunctiongetTheme
(theme: any)
app/App.tsx:157
↓ 2 callersFunctionisBunInstalled
()
cli/cli.js:28
↓ 2 callersFunctionisYarnInstalled
()
cli/cli.js:19
↓ 2 callersFunctionrenderIcon
({ type, props }: IIconProps)
app/src/screens/settings.tsx:43
↓ 2 callersFunctionrenderSelectedImage
()
app/src/screens/images.tsx:151
↓ 2 callersFunctionsaveFileToOpenai
(file: any)
server/src/helpers/saveFileToOpenai.ts:6
↓ 2 callersFunctionstreamOpenAICompatible
({ req, res, models, apiUrl, apiKey }: StreamArgs)
server/src/chat/openaiCompatible.ts:11
↓ 1 callersFunction_setChatType
(v)
app/src/components/ChatModelModal.tsx:12
↓ 1 callersFunctionclearChat
()
app/src/screens/assistant.tsx:47
↓ 1 callersFunctionclearChat
()
app/src/screens/chat.tsx:331
↓ 1 callersFunctionclearPrompts
()
app/src/screens/images.tsx:178
↓ 1 callersFunctionconfigureStorage
()
app/App.tsx:48
↓ 1 callersFunctioncopyToClipboard
(text)
app/src/screens/assistant.tsx:57
↓ 1 callersFunctioncopyToClipboard
(text)
app/src/screens/chat.tsx:312
↓ 1 callersFunctiondownloadImageToDevice
(url: string)
app/src/screens/images.tsx:203
↓ 1 callersFunctiongenerateAssistantResponse
()
app/src/screens/assistant.tsx:81
↓ 1 callersFunctiongenerateClaudeResponse
()
app/src/screens/chat.tsx:236
↓ 1 callersFunctiongenerateGeminiResponse
()
app/src/screens/chat.tsx:157
↓ 1 callersFunctiongetBottomsheetStyles
app/App.tsx:141
↓ 1 callersFunctiongetFirstNCharsOrLess
(text:string, numChars:number = 1000)
app/src/utils.ts:26
↓ 1 callersFunctiongetStyleSheet
app/src/screens/assistant.tsx:502
↓ 1 callersFunctiongetStyles
({ theme, insets } : { theme: any, insets: any})
app/src/main.tsx:87
↓ 1 callersFunctiongetStyles
(theme)
app/src/components/ChatModelModal.tsx:49
↓ 1 callersFunctiongetStyles
(theme:any)
app/src/components/Header.tsx:35
↓ 1 callersFunctiongetStyles
(theme: any)
app/src/screens/chat.tsx:471
↓ 1 callersFunctiongetStyles
app/src/screens/images.tsx:473
↓ 1 callersFunctiongetStyles
(theme:any)
app/src/screens/settings.tsx:213
↓ 1 callersFunctionmain
()
cli/cli.js:37
↓ 1 callersFunctionnormalizeDomain
(value?: string)
app/constants.ts:7
↓ 1 callersFunctionoptionContainer
(theme, baseType, type)
app/src/components/ChatModelModal.tsx:85
↓ 1 callersFunctionoptionText
(theme, baseType, type)
app/src/components/ChatModelModal.tsx:98
↓ 1 callersFunctionshowClipboardActionsheet
(text)
app/src/screens/assistant.tsx:61
↓ 1 callersFunctionshowClipboardActionsheet
(text)
app/src/screens/chat.tsx:316
↓ 1 callersFunctionshowClipboardActionsheet
(d)
app/src/screens/images.tsx:186
↓ 1 callersFunctionstreamToStdout
(stream :any, res: Response)
server/src/chat/gemini.ts:40
FunctionAnthropicIcon
({ size, theme, selected, ...props }: IAnthropicIcon)
app/src/components/AnthropicIcon.tsx:9
FunctionApp
()
app/App.tsx:27
FunctionAssistant
()
app/src/screens/assistant.tsx:26
FunctionChat
()
app/src/screens/chat.tsx:35
FunctionChatModelModal
({ handlePresentModalPress })
app/src/components/ChatModelModal.tsx:6
FunctionCohereIcon
({ size, theme, selected, ...props }: ICohereIcon)
app/src/components/CohereIcon.tsx:9
FunctionGLMIcon
({ size, theme, selected, ...props })
app/src/components/GLMIcon.tsx:3
FunctionGeminiIcon
({ size, theme, selected, ...props })
app/src/components/GeminiIcon.tsx:3
FunctionHeader
()
app/src/components/Header.tsx:9
FunctionIcon
({ size = 100, fill = 'black', ...props })
app/src/components/Icon.tsx:3
FunctionImages
()
app/src/screens/images.tsx:32
FunctionKimiIcon
({ size, theme, selected, ...props })
app/src/components/KimiIcon.tsx:3
FunctionMain
()
app/src/main.tsx:79
FunctionMainComponent
()
app/src/main.tsx:15
FunctionMistralIcon
({ size, theme, selected, ...props })
app/src/components/MistralIcon.tsx:3
FunctionOpenAIIcon
({ size, theme, selected, ...props }: IOpenAIIcon)
app/src/components/OpenAIIcon.tsx:9
FunctionSettings
()
app/src/screens/settings.tsx:32
Function_setChatType
(type)
app/App.tsx:76
Function_setImageModel
(model)
app/App.tsx:81
Function_setTheme
(theme)
app/App.tsx:86
FunctionaddMessageToThread
()
app/src/screens/assistant.tsx:212
FunctionaddMessageToThread
(req: Request, res: Response)
server/src/chat/addMessageToThread.ts:11
Functionchat
()
app/src/screens/chat.tsx:61
FunctionchooseDocument
()
app/src/screens/assistant.tsx:277
FunctionchooseImage
()
app/src/screens/images.tsx:223
Functioncohere
(req: Request, res: Response)
server/src/chat/cohere.ts:14
FunctioncopyToClipboard
(text:string)
app/src/screens/images.tsx:174
FunctioncreateAssistant
(req: Request, res: Response)
server/src/chat/createAssistant.ts:12
MethodcreateReactActivityDelegate
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] * which allows you to enable New Architecture with a s
app/android/app/src/main/java/com/anonymous/app/MainActivity.kt:36
FunctioncreateThread
()
app/src/screens/assistant.tsx:76
Functiongemini
(req: Request, res: Response)
server/src/chat/gemini.ts:5
FunctiongeminiImage
(req: Request, res: Response)
server/src/images/gemini.ts:16
Functiongenerate
()
app/src/screens/images.tsx:58
FunctiongetFirstN
({ messages, size = 10 } : { size?: number, messages: any[] })
app/src/utils.ts:33
MethodgetJSMainModuleName
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:30
MethodgetMainComponentName
* Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */
app/android/app/src/main/java/com/anonymous/app/MainActivity.kt:30
MethodgetPackages
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:24
FunctiongetThreadMessages
(req: Request, res: Response)
server/src/chat/getThreadMessages.ts:3
MethodgetUseDeveloperSupport
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:32
MethodinvokeDefaultOnBackPressed
* Align the back button behavior with Android S * where moving root activities to background instead of finishing activities. * @see <a href="
app/android/app/src/main/java/com/anonymous/app/MainActivity.kt:52
Functionlistener
(event)
app/src/screens/chat.tsx:118
FunctiononChangeInputText
(v)
app/src/screens/assistant.tsx:39
FunctiononChangeInstructionsText
(v)
app/src/screens/assistant.tsx:43
FunctiononChangeText
(val: string)
app/src/screens/images.tsx:219
MethodonConfigurationChanged
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:52
MethodonCreate
app/android/app/src/main/java/com/anonymous/app/MainActivity.kt:15
MethodonCreate
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:41
Functionread
()
server/src/helpers/saveFileToOpenai.ts:15
FunctionrenderItem
({ item, index })
app/src/screens/assistant.tsx:291
FunctionrenderItem
({ item, index } : { item: any, index: number })
app/src/screens/chat.tsx:337
FunctionrunResponse
(req: Request, res: Response)
server/src/chat/runResponse.ts:5
FunctionrunStatus
(req: Request, res: Response)
server/src/chat/runStatus.ts:3
FunctionuploadFile
(req: Request, res: Response)
server/src/files/upload-file.ts:5