title: How to change flatlist scroll animation duration in react native?
body: <p>I have a flatlist with a bunch of item in it now when I press the button the flatlist scrolls down using ref and scrollToIndex method. But the scroll animation is faster than what i need is there anyway to increase the scroll animation duration?</p>
  <p>This is the code for scrollup (up swipe gesture) function</p>
  <pre><code>const scrollUp = () =&gt; {
      console.log(&quot;Up Gesture&quot;, currentIndex);
      if (currentIndex &lt;= DATA.length - 1) {
          if (currentIndex != DATA.length - 1) {
              flatlistRef.current.scrollToIndex({
                  index: currentIndex + 1,
                  animated: true,
                  viewOffset: 200,
  
              });
              setCurrentIndex(currentIndex + 1);
          }
  
      }
  }
  </code></pre>
  <p>This is jsx returned</p>
  <pre><code>return (
      &lt;&gt;
          &lt;StatusBar hidden={true} /&gt;
          &lt;Button title=&quot;click me&quot; style={{ position: 'absolute', zIndex: 20, top: 20, }} onPress={() =&gt; scrollUp()} /&gt;
          &lt;AnimatedFlatList
              {...{ onScroll, ListFooterComponent, ListHeaderComponent, onScrollEndDrag }}
              ref={flatlistRef}
              overScrollMode='never'
              // scrollEnabled={false}
              scrollEventThrottle={1}
              data={DATA}
              style={{ width: WINDOW_WIDTH, height: WINDOW_HEIGHT, backgroundColor: 'black' }}
              keyExtractor={(item, index) =&gt; index.toString()}
              renderItem={({ item, index }) =&gt; {
                  return &lt;SinglePost aspectRatio={item.aspectRatio} uri={item.imgUrl} y={y} index={index} /&gt;
              }}
          /&gt;
      &lt;/&gt;
  );
  </code></pre>
  <p>Any help would be really appreciated, I have been working on the bug for past few day yet I did not manage to find any clear solution :(</p>