From 27c4054fcb885d8e00a466b4bd416edfe6eca32c Mon Sep 17 00:00:00 2001
From: Samuel Newman <mozzius@protonmail.com>
Date: Mon, 22 Apr 2024 21:56:40 +0100
Subject: Revert "Add layout transitions to the composer photo gallery on iOS
 (#3609)" (#3649)

This reverts commit 1a5b8b2c94ce1e66bff7e7295b799ae5b0613988.
---
 src/view/com/composer/Composer.tsx | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

(limited to 'src/view/com/composer/Composer.tsx')

diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index 77bec9bff..c5472c913 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -1,17 +1,9 @@
-import React, {
-  useCallback,
-  useEffect,
-  useLayoutEffect,
-  useMemo,
-  useRef,
-  useState,
-} from 'react'
+import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'
 import {
   ActivityIndicator,
   BackHandler,
   Keyboard,
   KeyboardAvoidingView,
-  LayoutAnimation,
   Platform,
   ScrollView,
   StyleSheet,
@@ -135,13 +127,6 @@ export const ComposePost = observer(function ComposePost({
     () => new GalleryModel(initImageUris),
     [initImageUris],
   )
-
-  useLayoutEffect(() => {
-    if (isIOS) {
-      LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
-    }
-  }, [gallery.size])
-
   const onClose = useCallback(() => {
     closeComposer()
   }, [closeComposer])
-- 
cgit 1.4.1

