Skip to content

Commit

Permalink
Merge pull request #19680 from esh-g/revert-animations
Browse files Browse the repository at this point in the history
Reverting EmojiPicker Animation

(cherry picked from commit e60f495)
  • Loading branch information
mountiny authored and OSBotify committed May 29, 2023
1 parent 70b64ce commit 58c4407
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/EmojiPicker/EmojiPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class EmojiPicker extends React.Component {
}

render() {
// There is no way to disable animations and they are really laggy, because there are so many
// emojis. The best alternative is to set it to 1ms so it just "pops" in and out
return (
<PopoverWithMeasuredContent
isVisible={this.state.isEmojiPickerVisible}
Expand All @@ -149,6 +151,8 @@ class EmojiPicker extends React.Component {
onModalHide={this.onModalHide}
hideModalContentWhileAnimating
shouldSetModalVisibility={false}
animationInTiming={1}
animationOutTiming={1}
anchorPosition={{
vertical: this.state.emojiPopoverAnchorPosition.vertical,
horizontal: this.state.emojiPopoverAnchorPosition.horizontal,
Expand Down
2 changes: 0 additions & 2 deletions src/components/Modal/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const Modal = (props) => (
<BaseModal
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
useNativeDriver
hideModalContentWhileAnimating
>
{props.children}
</BaseModal>
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReactionList/PopoverReactionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class PopoverReactionList extends React.Component {
anchorPosition={this.state.popoverAnchorPosition}
animationIn="fadeIn"
disableAnimation={false}
animationOutTiming={1}
shouldSetModalVisibility={false}
fullscreen
>
Expand Down

0 comments on commit 58c4407

Please sign in to comment.