forked from vergnet/application-amicale
Fixed recursive import warning
This commit is contained in:
parent
7162978503
commit
24106e9791
2 changed files with 3 additions and 2 deletions
|
@ -137,6 +137,7 @@ class CustomTabBar extends React.Component<Props, State> {
|
||||||
onLongPress={onLongPress}
|
onLongPress={onLongPress}
|
||||||
focused={isFocused}
|
focused={isFocused}
|
||||||
key={route.key}
|
key={route.key}
|
||||||
|
tabBarHeight={CustomTabBar.TAB_BAR_HEIGHT}
|
||||||
/>
|
/>
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,13 @@ import * as React from 'react';
|
||||||
import {Image, Platform, View} from "react-native";
|
import {Image, Platform, View} from "react-native";
|
||||||
import {FAB, TouchableRipple, withTheme} from 'react-native-paper';
|
import {FAB, TouchableRipple, withTheme} from 'react-native-paper';
|
||||||
import * as Animatable from "react-native-animatable";
|
import * as Animatable from "react-native-animatable";
|
||||||
import CustomTabBar from "./CustomTabBar";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
focused: boolean,
|
focused: boolean,
|
||||||
onPress: Function,
|
onPress: Function,
|
||||||
onLongPress: Function,
|
onLongPress: Function,
|
||||||
theme: Object,
|
theme: Object,
|
||||||
|
tabBarHeight: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
const AnimatedFAB = Animatable.createAnimatableComponent(FAB);
|
const AnimatedFAB = Animatable.createAnimatableComponent(FAB);
|
||||||
|
@ -81,7 +81,7 @@ class TabHomeIcon extends React.Component<Props> {
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: CustomTabBar.TAB_BAR_HEIGHT + 30,
|
height: this.props.tabBarHeight + 30,
|
||||||
marginBottom: -15,
|
marginBottom: -15,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue