Page MenuHomePhabricator

[native] Scrolling to the edited message
ClosedPublic

Authored by kuba on Apr 18 2023, 3:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 5:05 PM
Unknown Object (File)
Fri, Nov 8, 5:05 PM
Unknown Object (File)
Fri, Nov 8, 5:04 PM
Unknown Object (File)
Fri, Nov 8, 4:42 PM
Unknown Object (File)
Oct 10 2024, 12:15 PM
Unknown Object (File)
Oct 3 2024, 3:28 PM
Unknown Object (File)
Sep 28 2024, 4:05 PM
Unknown Object (File)
Sep 28 2024, 6:29 AM
Subscribers

Details

Summary

Added ability to scroll to the currently edited message.

Test Plan

Tested only on iOS (waiting for android to compile, but have problems with it). Entered edit mode.

  1. Pressed the preview of the currently edited message. The list scrolled to the edited message. Tested a few times.
  1. Artificial changed the key of the message, so it doesn't exist in the list. Pressed preview of the currently edited message, the warning appeared in the console as expected.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kuba added inline comments.
native/chat/chat-list.react.js
286

I created it this way, because:

flatList.scrollToItem({ item: key, animated: true });

didn't work.

On Android TouchableOpacity caused a visual glitch.

Fixed glitch on Android, swapped View and TouchableOpacity order

This revision is now accepted and ready to land.Apr 20 2023, 5:18 AM