Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabit3/react-native-ai
/ functions
Functions
100 in github.com/dabit3/react-native-ai
⨍
Functions
100
◇
Types & classes
14
↓ 9 callers
Function
updateChatState
(modelLabel: string, updater: (prev: ChatState) => ChatState)
app/src/screens/chat.tsx:50
↓ 4 callers
Function
getChatState
(modelLabel: string)
app/src/screens/chat.tsx:45
↓ 3 callers
Function
createEmptyChatState
()
app/src/screens/chat.tsx:29
↓ 3 callers
Function
getChatType
(type: Model)
app/src/utils.ts:45
↓ 3 callers
Function
getDynamicTextStyle
(baseType:string, type:string, theme:any)
app/src/screens/settings.tsx:196
↓ 3 callers
Function
getDynamicViewStyle
(baseType:string, type:string, theme:any)
app/src/screens/settings.tsx:205
↓ 3 callers
Function
getEventSource
({ headers, body, type } : { headers?: any, body: any, type: string })
app/src/utils.ts:5
↓ 3 callers
Function
handlePresentModalPress
()
app/App.tsx:67
↓ 2 callers
Function
checkThread
(_runId, _threadId)
app/src/screens/assistant.tsx:152
↓ 2 callers
Function
closeModal
()
app/App.tsx:62
↓ 2 callers
Function
generateGptResponse
()
app/src/screens/chat.tsx:74
↓ 2 callers
Function
getInlineData
(part: any)
server/src/images/gemini.ts:12
↓ 2 callers
Function
getTheme
(theme: any)
app/App.tsx:157
↓ 2 callers
Function
isBunInstalled
()
cli/cli.js:28
↓ 2 callers
Function
isYarnInstalled
()
cli/cli.js:19
↓ 2 callers
Function
renderIcon
({ type, props }: IIconProps)
app/src/screens/settings.tsx:43
↓ 2 callers
Function
renderSelectedImage
()
app/src/screens/images.tsx:151
↓ 2 callers
Function
saveFileToOpenai
(file: any)
server/src/helpers/saveFileToOpenai.ts:6
↓ 2 callers
Function
streamOpenAICompatible
({ req, res, models, apiUrl, apiKey }: StreamArgs)
server/src/chat/openaiCompatible.ts:11
↓ 1 callers
Function
_setChatType
(v)
app/src/components/ChatModelModal.tsx:12
↓ 1 callers
Function
clearChat
()
app/src/screens/assistant.tsx:47
↓ 1 callers
Function
clearChat
()
app/src/screens/chat.tsx:331
↓ 1 callers
Function
clearPrompts
()
app/src/screens/images.tsx:178
↓ 1 callers
Function
configureStorage
()
app/App.tsx:48
↓ 1 callers
Function
copyToClipboard
(text)
app/src/screens/assistant.tsx:57
↓ 1 callers
Function
copyToClipboard
(text)
app/src/screens/chat.tsx:312
↓ 1 callers
Function
downloadImageToDevice
(url: string)
app/src/screens/images.tsx:203
↓ 1 callers
Function
generateAssistantResponse
()
app/src/screens/assistant.tsx:81
↓ 1 callers
Function
generateClaudeResponse
()
app/src/screens/chat.tsx:236
↓ 1 callers
Function
generateGeminiResponse
()
app/src/screens/chat.tsx:157
↓ 1 callers
Function
getBottomsheetStyles
app/App.tsx:141
↓ 1 callers
Function
getFirstNCharsOrLess
(text:string, numChars:number = 1000)
app/src/utils.ts:26
↓ 1 callers
Function
getStyleSheet
app/src/screens/assistant.tsx:502
↓ 1 callers
Function
getStyles
({ theme, insets } : { theme: any, insets: any})
app/src/main.tsx:87
↓ 1 callers
Function
getStyles
(theme)
app/src/components/ChatModelModal.tsx:49
↓ 1 callers
Function
getStyles
(theme:any)
app/src/components/Header.tsx:35
↓ 1 callers
Function
getStyles
(theme: any)
app/src/screens/chat.tsx:471
↓ 1 callers
Function
getStyles
app/src/screens/images.tsx:473
↓ 1 callers
Function
getStyles
(theme:any)
app/src/screens/settings.tsx:213
↓ 1 callers
Function
main
()
cli/cli.js:37
↓ 1 callers
Function
normalizeDomain
(value?: string)
app/constants.ts:7
↓ 1 callers
Function
optionContainer
(theme, baseType, type)
app/src/components/ChatModelModal.tsx:85
↓ 1 callers
Function
optionText
(theme, baseType, type)
app/src/components/ChatModelModal.tsx:98
↓ 1 callers
Function
showClipboardActionsheet
(text)
app/src/screens/assistant.tsx:61
↓ 1 callers
Function
showClipboardActionsheet
(text)
app/src/screens/chat.tsx:316
↓ 1 callers
Function
showClipboardActionsheet
(d)
app/src/screens/images.tsx:186
↓ 1 callers
Function
streamToStdout
(stream :any, res: Response)
server/src/chat/gemini.ts:40
Function
AnthropicIcon
({ size, theme, selected, ...props }: IAnthropicIcon)
app/src/components/AnthropicIcon.tsx:9
Function
App
()
app/App.tsx:27
Function
Assistant
()
app/src/screens/assistant.tsx:26
Function
Chat
()
app/src/screens/chat.tsx:35
Function
ChatModelModal
({ handlePresentModalPress })
app/src/components/ChatModelModal.tsx:6
Function
CohereIcon
({ size, theme, selected, ...props }: ICohereIcon)
app/src/components/CohereIcon.tsx:9
Function
GLMIcon
({ size, theme, selected, ...props })
app/src/components/GLMIcon.tsx:3
Function
GeminiIcon
({ size, theme, selected, ...props })
app/src/components/GeminiIcon.tsx:3
Function
Header
()
app/src/components/Header.tsx:9
Function
Icon
({ size = 100, fill = 'black', ...props })
app/src/components/Icon.tsx:3
Function
Images
()
app/src/screens/images.tsx:32
Function
KimiIcon
({ size, theme, selected, ...props })
app/src/components/KimiIcon.tsx:3
Function
Main
()
app/src/main.tsx:79
Function
MainComponent
()
app/src/main.tsx:15
Function
MistralIcon
({ size, theme, selected, ...props })
app/src/components/MistralIcon.tsx:3
Function
OpenAIIcon
({ size, theme, selected, ...props }: IOpenAIIcon)
app/src/components/OpenAIIcon.tsx:9
Function
Settings
()
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
Function
addMessageToThread
()
app/src/screens/assistant.tsx:212
Function
addMessageToThread
(req: Request, res: Response)
server/src/chat/addMessageToThread.ts:11
Function
chat
()
app/src/screens/chat.tsx:61
Function
chooseDocument
()
app/src/screens/assistant.tsx:277
Function
chooseImage
()
app/src/screens/images.tsx:223
Function
cohere
(req: Request, res: Response)
server/src/chat/cohere.ts:14
Function
copyToClipboard
(text:string)
app/src/screens/images.tsx:174
Function
createAssistant
(req: Request, res: Response)
server/src/chat/createAssistant.ts:12
Method
createReactActivityDelegate
* 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
Function
createThread
()
app/src/screens/assistant.tsx:76
Function
gemini
(req: Request, res: Response)
server/src/chat/gemini.ts:5
Function
geminiImage
(req: Request, res: Response)
server/src/images/gemini.ts:16
Function
generate
()
app/src/screens/images.tsx:58
Function
getFirstN
({ messages, size = 10 } : { size?: number, messages: any[] })
app/src/utils.ts:33
Method
getJSMainModuleName
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:30
Method
getMainComponentName
* 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
Method
getPackages
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:24
Function
getThreadMessages
(req: Request, res: Response)
server/src/chat/getThreadMessages.ts:3
Method
getUseDeveloperSupport
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:32
Method
invokeDefaultOnBackPressed
* 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
Function
listener
(event)
app/src/screens/chat.tsx:118
Function
onChangeInputText
(v)
app/src/screens/assistant.tsx:39
Function
onChangeInstructionsText
(v)
app/src/screens/assistant.tsx:43
Function
onChangeText
(val: string)
app/src/screens/images.tsx:219
Method
onConfigurationChanged
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:52
Method
onCreate
app/android/app/src/main/java/com/anonymous/app/MainActivity.kt:15
Method
onCreate
app/android/app/src/main/java/com/anonymous/app/MainApplication.kt:41
Function
read
()
server/src/helpers/saveFileToOpenai.ts:15
Function
renderItem
({ item, index })
app/src/screens/assistant.tsx:291
Function
renderItem
({ item, index } : { item: any, index: number })
app/src/screens/chat.tsx:337
Function
runResponse
(req: Request, res: Response)
server/src/chat/runResponse.ts:5
Function
runStatus
(req: Request, res: Response)
server/src/chat/runStatus.ts:3
Function
uploadFile
(req: Request, res: Response)
server/src/files/upload-file.ts:5