Skip to content

Commit

Permalink
fix: web ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
aurimasmi committed Sep 29, 2023
1 parent 14080b2 commit 01a5529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create/src/focusManager/service/scroller.ts
@@ -1,5 +1,5 @@
import { Dimensions } from 'react-native';
import FocusModel, { MODEL_TYPES } from '../model/abstractFocusModel';
import FocusModel from '../model/abstractFocusModel';
import { DIRECTIONS } from '../constants';
import ScrollView from '../model/scrollview';
import View from '../model/view';
Expand Down Expand Up @@ -64,7 +64,7 @@ class Scroller {
const verticalViewportOffset = currentFocus.getScreen()?.getVerticalViewportOffset() ?? DEFAULT_VIEWPORT_OFFSET;

// If FlashList has it's own ListHeaderComponent first item should scroll to header width
if (currentFocus.getParent()?.getType() === MODEL_TYPES.ROW) {
if (currentFocus.getParent()?.getType() === 'row') {
if (
currentFocus.getRepeatContext()?.index === 0 &&
currentFocus.getParent()?.getListHeaderDimensions()?.width
Expand Down

0 comments on commit 01a5529

Please sign in to comment.