title: React Functional component is not rendering on props change
body: <p>I am using react native for development and i am using functional component for development. but i am facing problem in it. As i am getting callback from function and saving it in a state and i want to that component will render again. but component is not rendering again. Please check and provide me detail in </p>
  
  <pre><code> callBackfn = (callback) =&gt; {
          this.setState({ infomationtosend: callback });                    
      }
  </code></pre>
  
  <p>this is working fine as if i will print it on console get state correct output. but as it again goes in the ComponentTreat it doesn't render component again. i also tried useEffect but not working. can anyone provide me solution.</p>
  
  <pre><code>&lt;Swiper
     from={0}
     &gt;
      &lt;ComponentTreat
             detailsend={this.state.infomationtosend}
             appName={"sentText"}
             CallBack={(callback) =&gt; this.callBackfn(callback)}
        /&gt;
   &lt;/Swiper&gt;
  </code></pre>
  
  <p>problem in swiper duw to swiper component is not refreshing.</p>