feat. Timer Done Alert (Issue #3) #4

Merged
luna merged 6 commits from dev-issue-3 into main 2026-03-30 20:50:56 +02:00
2 changed files with 1475 additions and 1 deletions
Showing only changes of commit b01f3d2dab - Show all commits

8
App.js
View File

@@ -198,9 +198,15 @@ export default function App() {
const playSound = async () => { const playSound = async () => {
try { try {
const { sound } = await Audio.Sound.createAsync( const { sound } = await Audio.Sound.createAsync(
{ uri: 'https://shx.reversed.dev/u/mCgT76.mp3' }, require('./assets/alert.mp3'),
{ shouldPlay: true, volume: 1.0 } { shouldPlay: true, volume: 1.0 }
); );
sound.setOnPlaybackStatusUpdate((status) => {
if (status.didJustFinish) {
sound.unloadAsync();
}
});
} catch (error) { } catch (error) {
console.log('Error playing sound:', error); console.log('Error playing sound:', error);
} }

1468
assets/alert.mp3 Normal file

File diff suppressed because one or more lines are too long