1
0
Fork 0

Fixed recursive import warning

Dieser Commit ist enthalten in:
Arnaud Vergnet 2020-04-23 13:49:58 +02:00
Ursprung 7162978503
Commit 24106e9791
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -137,6 +137,7 @@ class CustomTabBar extends React.Component<Props, State> {
onLongPress={onLongPress}
focused={isFocused}
key={route.key}
tabBarHeight={CustomTabBar.TAB_BAR_HEIGHT}
/>
};

Datei anzeigen

@ -4,13 +4,13 @@ import * as React from 'react';
import {Image, Platform, View} from "react-native";
import {FAB, TouchableRipple, withTheme} from 'react-native-paper';
import * as Animatable from "react-native-animatable";
import CustomTabBar from "./CustomTabBar";
type Props = {
focused: boolean,
onPress: Function,
onLongPress: Function,
theme: Object,
tabBarHeight: number,
}
const AnimatedFAB = Animatable.createAnimatableComponent(FAB);
@ -81,7 +81,7 @@ class TabHomeIcon extends React.Component<Props> {
bottom: 0,
left: 0,
width: '100%',
height: CustomTabBar.TAB_BAR_HEIGHT + 30,
height: this.props.tabBarHeight + 30,
marginBottom: -15,
}}
>