-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing avatars #2099
Fix missing avatars #2099
Conversation
|
||
// Setting removeClippedSubviews will break text selection on Android | ||
// eslint-disable-next-line react/jsx-props-no-multi-spaces | ||
removeClippedSubviews={false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndrewGable do you remember how this broke text selection on Android? I tested it and seemed to work ok to me, but maybe I misinterpreted this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it was something along the lines of https://stackoverflow.com/a/66703331/2509962
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chatted with Andrew and neither one of us could remember why it was added. We're also going to implement a long press menu to select the entire contents of a message IIRC so whatever this refers to (still not entirely sure) might be even less relevant in the future.
@@ -0,0 +1,3 @@ | |||
import {SectionList} from 'react-native'; | |||
|
|||
export default SectionList; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this file do ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much 😄 . It imports the unmodified SectionList
and then re-exports it. This is because we have different builds depending on the platform and will switch extensions e.g.
import SectionList from './SectionList';
On web, this will pull from /SectionList/index.js
but on Android it will use /SectionList/index.android.js
So we are basically saying, when building for web use the unmodified SectionList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well for me, my only question before merging is the same as #2099 (comment) to confirm there isn't a regression we're unaware of. To clarify, I don't see any text selection regressions while testing, but I want to confirm I'm not missing anything.
Gonna proceed with merging this one since:
|
Details
Fixed Issues
https://github.com/Expensify/Expensify/issues/154715
Tests
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android