Skip to content

Commit

Permalink
chore: fix exporting renimated types
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Aug 11, 2020
1 parent e9899db commit 1afcc41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Easing } from 'react-native-reanimated';
import Animated, { Easing } from 'react-native-reanimated';

export const DEFAULT_ANIMATION_EASING = Easing.out(Easing.back(0.75));
export const DEFAULT_ANIMATION_EASING: Animated.EasingFunction = Easing.out(
Easing.back(0.75)
);
export const DEFAULT_ANIMATION_DURATION = 500;
4 changes: 2 additions & 2 deletions src/utilities/useScrollable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ScrollView,
SectionList,
} from 'react-native';
import {
import Animated, {
useValue,
event,
useCode,
Expand All @@ -22,7 +22,7 @@ export const useScrollable = () => {
const previousScrollableRef = useRef<ScrollableRef>(null);

// variables
const scrollableContentOffsetY = useValue<number>(0);
const scrollableContentOffsetY: Animated.Value<number> = useValue<number>(0);

// callbacks
const setScrollableRef = useCallback((ref: ScrollableRef) => {
Expand Down

0 comments on commit 1afcc41

Please sign in to comment.