Rocket.Chat.ReactNative/app/containers/MessageBox/buttons/SendButton.js

20 lines
373 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import BaseButton from './BaseButton';
const SendButton = React.memo(({ onPress }) => (
<BaseButton
onPress={onPress}
testID='messagebox-send-message'
accessibilityLabel='Send_message'
icon='send1'
/>
));
SendButton.propTypes = {
onPress: PropTypes.func.isRequired
};
export default SendButton;