Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Reactions/AddReactionBubble.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, {useRef} from 'react';
import {Pressable, View} from 'react-native';
import PropTypes from 'prop-types';
import Tooltip from '../Tooltip';
Expand Down Expand Up @@ -56,7 +56,7 @@ const defaultProps = {
};

const AddReactionBubble = (props) => {
const ref = React.createRef();
const ref = useRef();

const onPress = () => {
const openPicker = (refParam, anchorOrigin) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Reactions/MiniQuickEmojiReactions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, {useRef} from 'react';
import {View} from 'react-native';
import _ from 'underscore';
import {withOnyx} from 'react-native-onyx';
Expand Down Expand Up @@ -50,7 +50,7 @@ const defaultProps = {
* @returns {JSX.Element}
*/
const MiniQuickEmojiReactions = (props) => {
const ref = React.createRef();
const ref = useRef();

const openEmojiPicker = () => {
props.onPressOpenPicker();
Expand Down