stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Clarify the usage of the hardcoded 308 value in AttachmentPicker.tsx and AttachmentPickerError.tsx

Open santhoshvai opened this issue 3 years ago • 0 comments

Motivation The hardcoded value usage of 308 in AttachmentPicker.tsx and AttachmentPickerError.tsx is unmaintanable.

308 is the default value of the prop attachmentPickerBottomSheetHeight in the OverlayProvider, so it seems like the value set in the prop must be used here.

Proposed solution Use the value of the prop in both of these components instead of the hardcoded 308.

santhoshvai avatar May 23 '22 09:05 santhoshvai