'Animated FlatList work fine in emulator ,but crush when build it as apk and test it in my phone

the data that i use in my app come from realtime firebase this is my code

useEffect(() => {

getAllSalleData()// this function to fetsh data from realtime firebase

}, []);

      <Animated.FlatList   
        // ListFooterComponent={<View />}
        // ListFooterComponentStyle={{height:200}}
        horizontal

        data={mydata}
        // onRefresh={onRefresh}
        contentContainerStyle={{
          paddingVertical: 40,
          padding: 20,
          
          

        }}
        renderItem={({item, index}) => <Card hotel={item} index={index} />}
      />


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source