-
Notifications
You must be signed in to change notification settings - Fork 37
@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
base: main
Are you sure you want to change the base?
Conversation
apps/computer-vision/app/_layout.tsx
Outdated
<Drawer.Screen | ||
name="index" | ||
options={{ | ||
drawerLabel: ' Menu', |
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 is a space here?
apps/llm/package.json
Outdated
"react-native-safe-area-context": "5.4.0", | ||
"react-native-screens": "~4.11.1", | ||
"react-native-svg": "15.11.2", | ||
"react-native-svg-transformer": "^1.5.0", | ||
"react-native-wheel-scrollview-picker": "^2.0.6" |
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 don't understand how this PR tackles #224 if scrollview-picker
is still in package.json
.
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.
yes, remove scrollview-picker
from each package.json and reinstall deps.
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
@@ -7,6 +7,7 @@ | |||
"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
"expo-status-bar": "~2.2.3", | ||
"metro-config": "^0.81.0", | ||
"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
@@ -6,6 +6,7 @@ | |||
"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
@@ -42,10 +38,6 @@ export default function LLMToolCallingScreen({ | |||
tokenizerConfigSource: HAMMER2_1_TOKENIZER_CONFIG, | |||
}); | |||
|
|||
useEffect(() => { |
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.
Are you ensured that it's impossible to change the route when model is generating, because if it's possible it will lead to errors when trying to load model on a different page. I think with current implementation it isn't handled.
apps/llm/app/voice_chat/index.tsx
Outdated
@@ -69,7 +65,7 @@ export default function VoiceChatScreen({ | |||
tokenizerConfigSource: QWEN3_TOKENIZER_CONFIG, | |||
}); | |||
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
apps/llm/package.json
Outdated
"react-native-safe-area-context": "5.4.0", | ||
"react-native-screens": "~4.11.1", | ||
"react-native-svg": "15.11.2", | ||
"react-native-svg-transformer": "^1.5.0", | ||
"react-native-wheel-scrollview-picker": "^2.0.6" |
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.
yes, remove scrollview-picker
from each package.json and reinstall deps.
<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
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. |
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