I have a form in formik and fields generally look like that:
<Field
component={TextField}
name="phoneNumber"
type="text"
required
label={t('containers:CommonFields.phoneNumber')}
variant="outlined"
margin="normal"
/>
Where Field is imported from Formik and TextField is just styled formik-material-ui textfield:
import { TextField } from 'formik-material-ui';
import breakpoints from 'styles/breakpoints';
import styled from 'styled-components/macro';
export default styled(TextField)`
${breakpoints.md`
max-width: 320px;
`};
width: 100%;
`;
What i want to do is add input mask to that field using react-input-mask. This is what I've got so far:
https://codesandbox.io/s/priceless-currying-hryv1
Unfortunately the input is not rendering