[FIX] RoomItem using deprecated animated event signature (#2771)

This commit is contained in:
Gerzon Z 2021-01-07 10:50:09 -04:00 committed by GitHub
parent 5aaabcc324
commit 5d2050b8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Touchable extends React.Component {
rowState: 0 // 0: closed, 1: right opened, -1: left opened
};
this._onGestureEvent = Animated.event(
[{ nativeEvent: { translationX: this.dragX } }]
[{ nativeEvent: { translationX: this.dragX } }], { useNativeDriver: true }
);
this._value = 0;
}