Skip to content

Commit 3c3b04a

Browse files
authored
fix: change overlayOpacity prop type definition from OverlayContext to MessageOverlay (#1188)
1 parent 329c95f commit 3c3b04a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package/src/components/MessageOverlay/MessageOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export type MessageOverlayPropsWithContext<
100100
| 'message'
101101
| 'messageReactions'
102102
| 'messageTextNumberOfLines'
103-
| 'overlayOpacity'
104103
> & {
104+
overlayOpacity: Animated.SharedValue<number>;
105105
showScreen?: Animated.SharedValue<number>;
106106
};
107107

package/src/contexts/overlayContext/OverlayContext.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useContext } from 'react';
2-
import type Animated from 'react-native-reanimated';
32

43
import type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/types';
54

@@ -53,7 +52,6 @@ export type OverlayProviderProps<
5352
>
5453
> &
5554
Pick<OverlayContextValue, 'translucentStatusBar'> & {
56-
overlayOpacity: Animated.SharedValue<number>;
5755
closePicker?: (ref: React.RefObject<BottomSheetMethods>) => void;
5856
error?: boolean | Error;
5957
/** https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n) */

0 commit comments

Comments
 (0)