import Constants from 'expo-constants';
import React from 'react';
import { FlatList, StyleSheet } from 'react-native';
import DoneText from './DoneText';
import SuiteResult from './SuiteResult';
export default function Suites({ suites, done, numFailed, results }) {
const ref = React.useRef(null);
const renderItem = ({ item }) => ;
const keyExtractor = (item) => item.get('result').get('id');
const scrollToEnd = React.useMemo(
() => () => {
if (ref.current && ref.current.props.data.length > 0)
ref.current.scrollToEnd({ animated: false });
},
[ref]
);
React.useEffect(() => {
if (done && ref.current) {
scrollToEnd();
}
}, [ref, done]);
const ListFooterComponent = () => (
);
return (
);
}
const styles = StyleSheet.create({
contentContainerStyle: {
padding: 5,
paddingBottom: (Constants.statusBarHeight || 24) + 128,
},
list: {
flex: 1,
},
});