mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 10:33:26 +00:00
Compare commits
3 Commits
85ab358a13
...
c3e0bc3a8f
Author | SHA1 | Date | |
---|---|---|---|
|
c3e0bc3a8f | ||
|
8b7bf5da6d | ||
|
a5ab7f4767 |
@@ -46,7 +46,7 @@ export default function SearchScreen() {
|
|||||||
"keyboardWillShow",
|
"keyboardWillShow",
|
||||||
(e) => {
|
(e) => {
|
||||||
translateY.value = withTiming(
|
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
|
duration: e.duration ?? 250, // duration always returns 0 on Android, adjust value if needed
|
||||||
easing: Easing.out(Easing.ease),
|
easing: Easing.out(Easing.ease),
|
||||||
|
@@ -151,11 +151,12 @@ export const useDownloadManager = () => {
|
|||||||
updateDownloadItem(download.id, { status: "importing" });
|
updateDownloadItem(download.id, { status: "importing" });
|
||||||
|
|
||||||
const asset = await MediaLibrary.createAssetAsync(fileUri);
|
const asset = await MediaLibrary.createAssetAsync(fileUri);
|
||||||
|
const { localUri } = await MediaLibrary.getAssetInfoAsync(asset);
|
||||||
await FileSystem.deleteAsync(fileUri);
|
await FileSystem.deleteAsync(fileUri);
|
||||||
|
|
||||||
updateDownloadItem(download.id, {
|
updateDownloadItem(download.id, {
|
||||||
status: "finished",
|
status: "finished",
|
||||||
localPath: asset.uri,
|
localPath: localUri,
|
||||||
});
|
});
|
||||||
console.log("File saved to media library and original deleted");
|
console.log("File saved to media library and original deleted");
|
||||||
showToast("Download finished", {
|
showToast("Download finished", {
|
||||||
|
Reference in New Issue
Block a user