Fix lint errors

This commit is contained in:
Brent Vatne
2018-10-17 13:19:31 -07:00
parent 2b588e7616
commit 910df8e428
3 changed files with 5 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ import { Dimensions, Button, View, Text } from 'react-native';
import { withNavigation } from '@react-navigation/core';
import { createStackNavigator } from 'react-navigation-stack';
const Buttons = withNavigation((props) => (
const Buttons = withNavigation(props => (
<React.Fragment>
<Button
title="Go to Details"
@@ -49,7 +49,7 @@ class DetailsScreen extends React.Component {
title: 'Details',
gestureResponseDistance: {
horizontal: Dimensions.get('window').width,
}
},
};
render() {

View File

@@ -95,15 +95,7 @@ class ModularHeaderBackButton extends React.PureComponent {
}
render() {
const {
onPress,
width,
title,
titleStyle,
tintColor,
truncatedTitle,
} = this.props;
const { onPress, title } = this.props;
const { ButtonContainerComponent } = this.props;
return (

View File

@@ -124,8 +124,6 @@ function forFadeFromBottomAndroid(props) {
const { first, last } = interpolate;
const index = scene.index;
const inputRange = [first, index, last];
const opacity = position.interpolate({
inputRange: [first, first + 0.5, first + 0.9, index, last],
outputRange: [0, 0.25, 0.7, 1, 0],
@@ -161,7 +159,7 @@ function forFadeToBottomAndroid(props) {
const inputRange = [first, index, last];
const opacity = position.interpolate({
inputRange: [first, index, last],
inputRange,
outputRange: [0, 1, 0],
extrapolate: 'clamp',
});
@@ -170,7 +168,7 @@ function forFadeToBottomAndroid(props) {
const maxTranslation = height * 0.08;
const translateY = position.interpolate({
inputRange: [first, index, last],
inputRange,
outputRange: [maxTranslation, 0, 0],
extrapolate: 'clamp',
});