UNPKG

stream-chat-react-native-core

Version:

The official React Native and Expo components for Stream Chat, a service for building chat applications

64 lines 1.87 kB
Object.defineProperty(exports, "__esModule", { value: true }); exports.useCreateInputMessageInputContext = void 0; var _react = require("react"); var useCreateInputMessageInputContext = ({ additionalTextInputProps, allowSendBeforeAttachmentsUpload, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesSlideToCancelDistance, audioRecordingSendOnComplete, attachmentPickerBottomSheetHeight, attachmentSelectionBarHeight, audioRecordingEnabled, channelId, compressImageQuality, createPollOptionGap, doFileUploadRequest, editMessage, focusInputOnPickerClose, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, messageInputFloating, messageInputHeightStore, openPollCreationDialog, sendMessage, setInputRef, showPollCreationDialog }) => { var inputMessageInputContext = (0, _react.useMemo)(() => ({ additionalTextInputProps, allowSendBeforeAttachmentsUpload, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesSlideToCancelDistance, audioRecordingSendOnComplete, attachmentPickerBottomSheetHeight, attachmentSelectionBarHeight, audioRecordingEnabled, compressImageQuality, createPollOptionGap, doFileUploadRequest, editMessage, focusInputOnPickerClose, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, messageInputFloating, messageInputHeightStore, openPollCreationDialog, sendMessage, setInputRef, showPollCreationDialog }), [compressImageQuality, channelId, showPollCreationDialog, allowSendBeforeAttachmentsUpload]); return inputMessageInputContext; }; exports.useCreateInputMessageInputContext = useCreateInputMessageInputContext; //# sourceMappingURL=useCreateInputMessageInputContext.js.map