Skip to content

Commit

Permalink
fix: use interpolateNode in drawer to support Reanimated 2
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jun 22, 2020
1 parent d244488 commit ea5affd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/drawer/src/views/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ import * as React from 'react';
import { Platform, StyleSheet } from 'react-native';
import Animated from 'react-native-reanimated';

const { interpolate, cond, greaterThan } = Animated;
const {
interpolate: interpolateDeprecated,
// @ts-ignore
interpolateNode,
cond,
greaterThan,
} = Animated;

const interpolate: typeof interpolateDeprecated =
interpolateNode ?? interpolateDeprecated;

const PROGRESS_EPSILON = 0.05;

Expand Down

0 comments on commit ea5affd

Please sign in to comment.