title: Changing label at the Formik switcher
body: <p>I created switcher with Formik. The switcher label should change as well. It works for now, but only with boolean value.</p>
  <p><a href="https://i.stack.imgur.com/RUoy9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RUoy9.png" alt="enter image description here" /></a></p>
  <p>However, I need not boolean at the label but string. For example, instead of &quot;true/false&quot; a need to show &quot;Text1/Text2&quot;.</p>
  <p>Here is my code:</p>
  <pre><code> const createItemTypeInitState = {
                item_type: false, // this boolean values works properly, switching the label text between true/false
                item_type_name: &quot;Text1&quot;, // here should be the string values &quot;Text1&quot;/&quot;Text2&quot;, depending on the switcher on/off
      };
  
    const [initialValues, setInitialValues] = useState&lt;createItemData&gt;(
      createItemTypeInitState
    );
              
          &lt;FormControl component=&quot;fieldset&quot; variant=&quot;standard&quot;&gt;
              &lt;FormGroup&gt;
                   &lt;FormControlLabel
                      control={
                         &lt;Android12Switch
                             checked={values.item_type}
                             onChange={handleChange}
                             name=&quot;item_type&quot;
                          /&gt;
                       }
                       label={`${values.item_type}`}
                   /&gt;
              &lt;/FormGroup&gt;
          &lt;/FormControl&gt;
  </code></pre>
  <p>So I need to change boolean value item_type to the string value item_type_name. Please help me do it.</p>