Skip to content

Commit

Permalink
feat: react-native 0.62 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh committed Apr 8, 2020
1 parent f330062 commit edd0121
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"metro-react-native-babel-preset": "^0.56.0",
"react": "~16.9.0",
"react-native": "~0.61.4",
"react-native-svg": "~9.13.3",
"react-native-svg": "~9.13.6",
"react-native-testing-library": "^1.12.0",
"react-test-renderer": "16.9.0",
"rimraf": "^2.6.2",
Expand All @@ -62,7 +62,7 @@
},
"resolutions": {
"react": "~16.9.0",
"react-native": "~0.61.4",
"react-native": "~0.61.5",
"react-native-svg": "~9.13.3"
}
}
2 changes: 1 addition & 1 deletion src/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"fecha": "3.0.3"
},
"peerDependencies": {
"react-native-svg": "^9.4.0"
"react-native-svg": "9.13.6"
}
}
5 changes: 1 addition & 4 deletions src/components/ui/animation/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import {

export const DEFAULT_CONFIG: AnimationConfig = {
cycles: 1,
useNativeDriver: Platform.select({
default: true,
web: false,
}),
useNativeDriver: Platform.OS !== 'web',
};

/**
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/menu/menuGroup.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class MenuGroup extends React.Component<MenuGroupProps, State> {
return Animated.timing(this.expandAnimation, {
toValue: toValue,
duration: CHEVRON_ANIM_DURATION,
useNativeDriver: false,
});
};

Expand Down
2 changes: 2 additions & 0 deletions src/components/ui/shared/tabIndicator.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Animated,
Easing,
LayoutChangeEvent,
Platform,
ViewProps,
ViewStyle,
} from 'react-native';
Expand Down Expand Up @@ -91,6 +92,7 @@ export class TabIndicator extends React.Component<TabIndicatorProps> {
toValue: RTLService.select(params.offset, -params.offset),
duration: 200,
easing: Easing.linear,
useNativeDriver: Platform.OS !== 'web',
});
};

Expand Down
1 change: 1 addition & 0 deletions src/components/ui/text/text.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type ChildElement = React.ReactText | TextElement;

export interface TextProps extends RNTextProps, TextStyledProps {
children?: ChildElement | ChildElement[];
appearance?: 'default' | 'alternative' | 'hint' | string;
category?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 's1' | 's2' | 'p1' | 'p2' | 'c1' | 'c2' | 'label' | string;
status?: EvaStatus;
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/ui/toggle/toggle.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ export class ToggleComponent extends React.Component<ToggleProps> implements Pan
toValue: RTLService.select(value, -value),
duration: 150,
easing: Easing.linear,
useNativeDriver: false,
}).start(() => {
this.thumbTranslateAnimationActive = false;
callback();
Expand All @@ -334,6 +335,7 @@ export class ToggleComponent extends React.Component<ToggleProps> implements Pan
toValue: value,
duration: 150,
easing: Easing.linear,
useNativeDriver: false,
}).start(callback);
};

Expand All @@ -342,6 +344,7 @@ export class ToggleComponent extends React.Component<ToggleProps> implements Pan
toValue: value,
duration: 200,
easing: Easing.linear,
useNativeDriver: false,
}).start(callback);
};

Expand Down
2 changes: 2 additions & 0 deletions src/components/ui/viewPager/viewPager.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
PanResponderCallbacks,
PanResponderGestureState,
PanResponderInstance,
Platform,
StyleSheet,
View,
ViewProps,
Expand Down Expand Up @@ -157,6 +158,7 @@ export class ViewPager<ChildrenProps = {}> extends React.Component<ViewPagerProp
toValue: RTLService.select(-params.offset, params.offset),
easing: Easing.linear,
duration: animationDuration,
useNativeDriver: Platform.OS !== 'web',
});
};

Expand Down
6 changes: 3 additions & 3 deletions src/eva-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"react-native-eva-icons": "1.1.0"
},
"devDependencies": {
"react-native-svg": "^9.4.0"
"react-native-svg": "9.13.6"
},
"peerDependencies": {
"@ui-kitten/components": "4.4.1",
"react-native-svg": "^9.4.0"
"react-native-svg": "9.13.6"
},
"sideEffects": false
}
}

0 comments on commit edd0121

Please sign in to comment.