Skip to content

Commit

Permalink
[bare-expo] Fix FlatList regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Nov 3, 2022
1 parent 4c80204 commit 293377c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/test-suite/components/Suites.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default function Suites({ suites, done, numFailed, results }) {

const scrollToEnd = React.useMemo(
() => () => {
if (ref.current) ref.current.scrollToEnd({ animated: false });
if (ref.current && ref.current.props.data.length > 0)
ref.current.scrollToEnd({ animated: false });
},
[ref]
);
Expand Down

0 comments on commit 293377c

Please sign in to comment.