Skip to content

Commit

Permalink
Merge pull request #34188 from situchan/fix-fab-forwarding-ref
Browse files Browse the repository at this point in the history
fix forwarding ref in FAB

(cherry picked from commit e08b288)
  • Loading branch information
roryabraham authored and OSBotify committed Jan 9, 2024
1 parent d929d7c commit c15da6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/FloatingActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {ForwardedRef} from 'react';
import React, {useEffect, useRef} from 'react';
import React, {forwardRef, useEffect, useRef} from 'react';
import type {GestureResponderEvent, Role} from 'react-native';
import {Platform, View} from 'react-native';
import Animated, {createAnimatedPropAdapter, Easing, interpolateColor, processColor, useAnimatedProps, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
Expand Down Expand Up @@ -134,4 +134,4 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role}: Flo

FloatingActionButton.displayName = 'FloatingActionButton';

export default FloatingActionButton;
export default forwardRef(FloatingActionButton);

0 comments on commit c15da6f

Please sign in to comment.