Compare commits

...

3 Commits

Author SHA1 Message Date
Adrian Castro
c3e0bc3a8f Merge 8b7bf5da6d into a3f184979e 2024-04-07 19:46:13 +00:00
Adrian Castro
8b7bf5da6d fix: adjust bar height over keyboard 2024-04-07 21:46:05 +02:00
Adrian Castro
a5ab7f4767 fix: grab local uri from assetinfo 2024-04-07 19:53:09 +02:00
2 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export default function SearchScreen() {
"keyboardWillShow",
(e) => {
translateY.value = withTiming(
-(e.endCoordinates.height - 110), // determines the height of the Searchbar above keyboard, use Platform.select to adjust value if needed
-(e.endCoordinates.height - 100), // determines the height of the Searchbar above keyboard, use Platform.select to adjust value if needed
{
duration: e.duration ?? 250, // duration always returns 0 on Android, adjust value if needed
easing: Easing.out(Easing.ease),

View File

@@ -151,11 +151,12 @@ export const useDownloadManager = () => {
updateDownloadItem(download.id, { status: "importing" });
const asset = await MediaLibrary.createAssetAsync(fileUri);
const { localUri } = await MediaLibrary.getAssetInfoAsync(asset);
await FileSystem.deleteAsync(fileUri);
updateDownloadItem(download.id, {
status: "finished",
localPath: asset.uri,
localPath: localUri,
});
console.log("File saved to media library and original deleted");
showToast("Download finished", {