title: ForwardRef on a custom component typescript
body: <p>I'm trying to access a children component function from his parent using references.</p>
  
  <p>I've my parent component :</p>
  
  <pre><code>const Parent: FC = (props) =&gt; {
      let childRef = useRef(null);
  
      const handle = () =&gt; {
          childRef.current.customFunction();
      }
  
      return (
          &lt;Children props1="value" ref={childRef}/&gt;
          &lt;Button onPress={handle}/&gt;
  }
  </code></pre>
  
  <p>And my children component :</p>
  
  <pre><code>interface Props {
      props1: string
  }
  
  const Children: FC&lt;Props&gt; = forwardRef((props,ref) =&gt; {
      const customFunction = () =&gt; {
          console.log("Custom");    
      }
  
      return &lt;View&gt;props.children&lt;/View&gt;
  })
  </code></pre>
  
  <p>I have a typescript error when rendering my children component :</p>
  
  <blockquote>
    <p>Property 'ref' does not exist on type 'intrinsicAttribute &amp; props &amp;
    {children?:ReactNode}</p>
  </blockquote>
  
  <p>Note that I would like to keep any strict type.</p>