Skip to content

Commit

Permalink
add empty dep arrays to Animated.Code
Browse files Browse the repository at this point in the history
  • Loading branch information
computerjazz committed Jan 22, 2021
1 parent 8e94ee4 commit 966ce11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"react": "^16.12.0",
"react-native": "^0.61.5",
"react-native-gesture-handler": "^1.5.3",
"react-native-reanimated": "^1.9.0",
"react-native-reanimated": "^1.13.0",
"typescript": "^3.7.3"
}
}
8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
};

renderOnPlaceholderIndexChange = () => (
<Animated.Code>
<Animated.Code dependencies={[]}>
{() =>
block([
onChange(
Expand Down Expand Up @@ -952,7 +952,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {

renderDebug() {
return (
<Animated.Code>
<Animated.Code dependencies={[]}>
{() =>
block([
onChange(this.spacerIndex, debug("spacerIndex: ", this.spacerIndex))
Expand Down Expand Up @@ -1015,7 +1015,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
scrollEventThrottle={1}
/>
{!!hoverComponent && this.renderHoverComponent()}
<Animated.Code>
<Animated.Code dependencies={[]}>
{() =>
block([
onChange(
Expand All @@ -1040,7 +1040,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
}
</Animated.Code>
{onScrollOffsetChange && (
<Animated.Code>
<Animated.Code dependencies={[]}>
{() =>
onChange(
this.scrollOffset,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3740,10 +3740,10 @@ react-native-gesture-handler@^1.5.3:
invariant "^2.2.4"
prop-types "^15.7.2"

react-native-reanimated@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-1.9.0.tgz#38676c99dd585504fdc7331efb45e5f48ec7339a"
integrity sha512-Aj+spgIHRiVv7ezGADxnSH1EoKrQRD2+XaSiGY0MiB/pvRNNrZPSJ+3NVpvLwWf9lZMOP7dwqqyJIzoZgBDt8w==
react-native-reanimated@^1.13.0:
version "1.13.2"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-1.13.2.tgz#1ae5457b24b4913d173a5a064bb28eae7783d293"
integrity sha512-O+WhgxSjOIzcVdAAvx+h2DY331Ek1knKlaq+jsNLpC1fhRy9XTdOObovgob/aF2ve9uJfPEawCx8381g/tUJZQ==
dependencies:
fbjs "^1.0.0"

Expand Down

0 comments on commit 966ce11

Please sign in to comment.