Skip to content

Commit 0bfe0c4

Browse files
committed
fix: refresh the list instead of needing to reboot
1 parent a6b6e51 commit 0bfe0c4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

example/src/App.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ const AppContainer = () => {
257257
const deleteRecordings = async () => {
258258
await Promise.all(recordings.map(async recording => fs.unlink(recording)))
259259
.then(() => {
260-
Alert.alert(
261-
'All recording deleted',
262-
'All recordings have been deleted successfully! Reboot the app to see the changes.',
263-
[{ text: 'Dismiss' }]
264-
);
260+
generateAudioList().then(audioListArray => {
261+
setList(audioListArray);
262+
});
265263
})
266264
.catch(error => {
267265
Alert.alert(

0 commit comments

Comments
 (0)