Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as React from 'react';
import { View, Dimensions, Animated, Platform, Insets } from 'react-native';
import { observer } from 'mobx-react';
import Reanimated from 'react-native-reanimated';
import { TabView, TabBar } from 'react-native-tab-view';
import * as GestureHandler from 'react-native-gesture-handler';
import { autobind } from 'core-decorators';
import { format, addDays } from 'date-fns';
import { runScrollEndSpring } from 'utils/runScrollEndSpring';
import store from 'store';
const PagerExperimental = require('react-native-tab-view').PagerExperimental;
const styles = require('./WeekTabView.css');
interface IProps {
testID?: string;
insets?: Insets;
render(route: { key: string; date: Date; }): React.ReactNode;
useScrollView?: boolean;
hideTabsOnScroll?: boolean;
selectedTab?: number;
}
const NAVBAR_HEIGHT = 56;
const INITIAL_LAYOUT = {
height: 0,
width: Dimensions.get('window').width,
};