From 24106e9791476f73f8b0530695513b41762b29e8 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Thu, 23 Apr 2020 13:49:58 +0200 Subject: [PATCH] Fixed recursive import warning --- src/components/Tabbar/CustomTabBar.js | 1 + src/components/Tabbar/TabHomeIcon.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Tabbar/CustomTabBar.js b/src/components/Tabbar/CustomTabBar.js index 1d4d7a8..6431fd3 100644 --- a/src/components/Tabbar/CustomTabBar.js +++ b/src/components/Tabbar/CustomTabBar.js @@ -137,6 +137,7 @@ class CustomTabBar extends React.Component { onLongPress={onLongPress} focused={isFocused} key={route.key} + tabBarHeight={CustomTabBar.TAB_BAR_HEIGHT} /> }; diff --git a/src/components/Tabbar/TabHomeIcon.js b/src/components/Tabbar/TabHomeIcon.js index 9d3e9db..608a66e 100644 --- a/src/components/Tabbar/TabHomeIcon.js +++ b/src/components/Tabbar/TabHomeIcon.js @@ -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 { bottom: 0, left: 0, width: '100%', - height: CustomTabBar.TAB_BAR_HEIGHT + 30, + height: this.props.tabBarHeight + 30, marginBottom: -15, }} >