diff --git a/app/components/DTMFModal.js b/app/components/DTMFModal.js index 67805a2..64d0547 100644 --- a/app/components/DTMFModal.js +++ b/app/components/DTMFModal.js @@ -1,68 +1,68 @@ import debug from 'debug'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { Portal, Dialog, Surface, Title, Button, Text} from 'react-native-paper'; import dtmf from 'react-native-dtmf'; import styles from '../assets/styles/blink/_DTMFModal.scss'; const DEBUG = debug('blinkrtc:DTMF'); debug.enable('*'); class DTMFModal extends Component { sendDtmf(tone) { DEBUG('DTMF tone was sent: ' + tone); dtmf.stopTone();//don't play a tone at the same time as another dtmf.playTone(dtmf['DTMF_' + tone], 500); if (this.props.call !== null && this.props.call.state === 'established') { this.props.callKeepSendDtmf(tone); } } render() { return ( - DTMF + DTMF dialpad ); } } DTMFModal.propTypes = { show: PropTypes.bool.isRequired, hide: PropTypes.func.isRequired, call: PropTypes.object, callKeepSendDtmf: PropTypes.func.isRequired }; export default DTMFModal;