Skip to content

Commit e16e559

Browse files
authored
Upgrade reanimated to 2.17 (#2587)
1 parent ef1ab08 commit e16e559

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

demo/src/screens/componentScreens/SortableListScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const SortableListScreen = () => {
7676
const Container = locked ? View : TouchableOpacity;
7777
return (
7878
<Container
79+
// TODO: fix Android selection color
7980
style={[styles.itemContainer, isSelected && styles.selectedItemContainer]}
8081
onPress={() => toggleItemSelection(item)}
8182
// overriding the BG color to anything other than white will cause Android's elevation to fail

demo/src/screens/incubatorScreens/IncubatorToastScreen.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, {Component} from 'react';
22
import {ScrollView, StyleSheet} from 'react-native';
33
import {Assets, Colors, View, Button, Text, Incubator} from 'react-native-ui-lib';
44
import {renderMultipleSegmentOptions, renderBooleanOption, renderRadioGroup} from '../ExampleScreenPresenter';
5+
import {gestureHandlerRootHOC} from 'react-native-gesture-handler';
56

67
const {Toast} = Incubator;
78

@@ -18,7 +19,7 @@ const TOAST_MESSAGES = {
1819
offline: 'Check Your Internet Connection'
1920
};
2021

21-
export default class ToastsScreen extends Component {
22+
class ToastsScreen extends Component {
2223
showToast = false; // keep this state in class instance for immediate response
2324
state = {
2425
visible: false,
@@ -179,6 +180,8 @@ export default class ToastsScreen extends Component {
179180
}
180181
}
181182

183+
export default gestureHandlerRootHOC(ToastsScreen);
184+
182185
const styles = StyleSheet.create({
183186
scrollView: {
184187
paddingBottom: 80

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"react-native-haptic-feedback": "^1.11.0",
112112
"react-native-linear-gradient": "2.6.2",
113113
"react-native-navigation": "7.32.1",
114-
"react-native-reanimated": "2.14.0",
114+
"react-native-reanimated": "2.17.0",
115115
"react-native-shimmer-placeholder": "^2.0.6",
116116
"react-native-svg": "^13.7.0",
117117
"react-native-svg-transformer": "^0.14.3",

src/components/picker/NativePicker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import TouchableOpacity from '../touchableOpacity';
77
import {Colors} from '../../style';
88
import {WheelPicker} from '../../incubator';
99

10+
// TODO: remove this file?
1011
class NativePicker extends Component {
1112
static displayName = 'NativePicker';
1213

src/components/sharedTransition/SharedArea.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {interpolate: _interpolate, interpolateNode} = Animated;
1111
const Easing = EasingNode || _Easing;
1212
const interpolate = interpolateNode || _interpolate;
1313

14+
// TODO: 2.17 breaks Android (at list the screen, the image is not shown) - move to incubator?
1415
class SharedArea extends Component {
1516
displayName = 'IGNORE';
1617
static propTypes = {

0 commit comments

Comments
 (0)