Description
I tried this example: https://snack.expo.dev/@saad-bashar/remove-item-flatlist
from this article:
https://dev.to/saadbashar/remove-item-with-animation-in-a-horizontal-flatlist-in-react-native-o26
But instead of using Card from react-native-paper, I used a regular View.
On iOS, the layout animation works for both opacity and transition, but when removing the last index, only the opacity works."
Steps to reproduce
When you tap the last index in the list (not necessarily the last remaining item), notice the behavior.
React Native Version
0.80.2
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.6.1
CPU: (10) arm64 Apple M1 Max
Memory: 1.62 GB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 24.5.0
path: ~/.nvm/versions/node/v24.5.0/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v24.5.0/bin/yarn
npm:
version: 11.5.1
path: ~/.nvm/versions/node/v24.5.0/bin/npm
Watchman:
version: 2025.07.21.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/ralphmerhy/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 3.1.4
path: /Users/ralphmerhy/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 19.1.1
wanted: 19.1.1
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.80.2
wanted: 0.80.2
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
MANDATORY Reproducer
https://snack.expo.dev/@saad-bashar/remove-item-flatlist
Screenshots and Videos
No response
Description
I tried this example: https://snack.expo.dev/@saad-bashar/remove-item-flatlist
from this article:
https://dev.to/saadbashar/remove-item-with-animation-in-a-horizontal-flatlist-in-react-native-o26
But instead of using Card from react-native-paper, I used a regular View.
On iOS, the layout animation works for both opacity and transition, but when removing the last index, only the opacity works."
Steps to reproduce
When you tap the last index in the list (not necessarily the last remaining item), notice the behavior.
React Native Version
0.80.2
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://snack.expo.dev/@saad-bashar/remove-item-flatlist
Screenshots and Videos
No response