Skip to content

Commit 794a4bd

Browse files
authored
Merge pull request #5599 from EdgeApp/jon/fix/ios-carousel-refresh-delay
Revert back to the original iOS rendering hack delay
2 parents 9f08dde + 76a1b25 commit 794a4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/EdgeCarousel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function EdgeCarousel<T>(props: Props<T>): JSX.Element {
4747
// HACK: With 1 item, this is the only way to force a render in iOS
4848
if (Platform.OS === 'ios' && dataLocal.length === 1) {
4949
setDataLocal([])
50-
setTimeout(() => setDataLocal(data), 50)
50+
setTimeout(() => setDataLocal(data), 500)
5151
}
5252
// The built-in hack fn works for all other cases
5353
else if (carouselRef.current != null) {

0 commit comments

Comments
 (0)