title: How to activate autoplay true of Swiper in Image Background?
body: <p>The image slider or the Swiper works, it slides only if it is done with the pointer either to the left or right, but the: <code>autoplay ={true}</code> does not slide the slider automatically.</p>
  <p>It only works with the examples found <a href="https://www.npmjs.com/package/react-native-swiper" rel="nofollow noreferrer">here (npmjs.com)</a>, using <code>View</code> and <code>Text</code></p>
  <p>So therefore I tried to add a <code>View</code> as a container but it didn't work:</p>
  <pre><code>            &lt;View style ={{height:200}}&gt;
                  &lt;Swiper autoplay ={true}&gt;
                      {this.state.dataBanner?.length &gt; 0 &amp;&amp; this.state.dataBanner.map((itemImg)=&gt; {
                          return (
                              //&lt;View&gt; ADD VIEW -&gt; FAILED ATTEMPT
                              &lt;ImageBackground
                                  source ={{ uri: itemImg.urlToImage }}
                                  style ={{height:&quot;100%&quot;, width:&quot;100%&quot;}}
                              &gt;
                                  &lt;LinearGradient style={styles.bgBanner} colors={[ 'transparent', 'black']} &gt;
                                      &lt;Text style={styles.textBanner} numberOfLines={2}&gt;{itemImg.title}&lt;/Text&gt;
                                  &lt;/LinearGradient&gt;
                              &lt;/ImageBackground&gt;
                              //&lt;/View&gt; ADD VIEW -&gt; FAILED ATTEMPT
                          )
                      })}
                  &lt;/Swiper&gt;
              &lt;/View&gt;
  </code></pre>
  <p>How can I make the slider work automatically in ImageBackground?</p>