title: How to handle checkbox action - react native?
body: <p>I have two function :</p>
  <pre><code>    const SelectCheckBox = (obj, isChecked) =&gt; {
      
          if (isChecked) {
            result += parseFloat(obj.value);
          } else {
            result -= parseFloat(obj.value);
          }
      
        };
      
        const SelectAllRadioButton = (objList) =&gt; {
          setSelectAll(true);
          result = 0;
      
          for (const property in objList) {
            result += parseFloat(objList[property].value);
          }
      
        };
  
      {props.List?.map((item, index) =&gt; renderRow(item, index))}
  
  const renderRow = (obj, index) =&gt; (
               &lt;Field
                checked={selectAll}
                component={checkboxComponent}
                name={index}
                onChange={(isChecked) =&gt; SelectCheckBox({ index, obj }, isChecked)}
              /&gt;
  )
        
  </code></pre>
  <p>When I click <code>SelectAllRadioButton</code> all checkboxes are checked. When I click SelectCheckBox, checkbox which i clicked should be unchecked. However, I cant do it because of <code>checked={selectAll}</code>. How can i handle this</p>