-
Notifications
You must be signed in to change notification settings - Fork 51
@mlodyjesienin/example app UI #386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Calling |
|
Could you also handle this one: #349 in this PR and disable voice chat on emulator in llm examples? |
|
I think that in llm examples it will be better to use simple stack navigation with back arrow to the main screen instead of drawer navigation. |
|
I don't understand what should present the |
|
Maybe it is worth adding |
|
Deactivate |
|
In |
apps/computer-vision/app.json
Outdated
| "icon": "./assets/icons/icon.png", | ||
| "userInterfaceStyle": "light", | ||
| "newArchEnabled": true, | ||
| "scheme": "your-app-scheme", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to set scheme to "rne-computer-vision"
Do the same for other apps
apps/computer-vision/package.json
Outdated
| "react": "19.0.0", | ||
| "react-native": "0.79.2", | ||
| "react-native-executorch": "workspace:*", | ||
| "react-native-executorch": "0.4.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "react-native-executorch": "0.4.2", | |
| "react-native-executorch": "workspace:*", |
apps/llm/app.json
Outdated
| "orientation": "portrait", | ||
| "icon": "./assets/icons/icon.png", | ||
| "userInterfaceStyle": "light", | ||
| "scheme": "your-app-scheme", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in computer vision rne-llm
apps/llm/app/voice_chat/index.tsx
Outdated
| }); | ||
| const speechToText = useSpeechToText({ | ||
| modelName: 'moonshine', | ||
| modelName: 'whisper', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change? I think w should stay with moonshine as default
| <action android:name="android.intent.action.VIEW"/> | ||
| <category android:name="android.intent.category.DEFAULT"/> | ||
| <category android:name="android.intent.category.BROWSABLE"/> | ||
| <data android:scheme="your-app-scheme"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to run npx expo prebuild for a changes from app.json to be applied, but when doing that don't forget to open ios project in xcode and add increased memory capability
apps/llm/contexts/LlmContext.tsx
Outdated
| return context; | ||
| } | ||
|
|
||
| import { ReactNode } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the import to the top of this file
|
I've tested it and works fine. Please apply changes requested i my two comments, fix the conflicts and you can merge. |
75ff9ff to
fec4dc1
Compare
|
Speech to text example still contains in |
#401) …hen they go out of focus by introducing wrapers. ## Description ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> --------- Co-authored-by: mlodyjesienin <[email protected]>
|
Are you able to run successfully for some url |
Same problem at my side, tested it with audio that worked some time ago. However it's not in scope of this PR so I will be thankful if you can add a separate issue. |
|
Done: #409 |
| import { BottomBar } from '../../components/BottomBar'; | ||
| import React, { useContext, useEffect, useState } from 'react'; | ||
| import { GeneratingContext } from '../../context'; | ||
| import ScreenWrapper from '../../screenWrapper'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the name of the screenWrapper file should start from large letter as it's a component
| import { useIsFocused } from '@react-navigation/native'; | ||
| import { GeneratingContext } from '../../context'; | ||
|
|
||
| export default function LLMScreenWrapper() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe let's move this wrapper to separate file like in computer-vision example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not used anywhere, remove it
|
A really good job on this one 👏🏻 |
## Description Migrated example apps (llm, computervision) to expo router navigation. Added drawer navigation and menu for better UX. Fixed small issues regarding keyboard padding. ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) ### Tested on - [x] iOS - [x] Android ### Related issues Issue #224 ### Checklist - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas, (not necessary) - [ ] I have updated the documentation accordingly, (not necessary) - [ ] My changes generate no new warnings --------- Co-authored-by: pweglik <[email protected]>






Description
Migrated example apps (llm, computervision) to expo router navigation.
Added drawer navigation and menu for better UX.
Fixed small issues regarding keyboard padding.
Type of change
Tested on
Related issues
Issue #224
Checklist