From 96ed75ac728e9342f8a757c27e33dc882564e954 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Tue, 21 Apr 2020 20:02:17 +0200 Subject: [PATCH] Added collapsible header to profile --- src/navigation/MainTabNavigator.js | 8 +------- src/screens/Amicale/ProfileScreen.js | 22 +++++++++++++++++----- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/navigation/MainTabNavigator.js b/src/navigation/MainTabNavigator.js index c211ea0..ae966c8 100644 --- a/src/navigation/MainTabNavigator.js +++ b/src/navigation/MainTabNavigator.js @@ -246,13 +246,7 @@ function HomeStackComponent(initialRoute: string | null, defaultData: { [key: st title: i18n.t('screens.login'), }} /> - + {createScreenCollapsibleStack("profile", HomeStack, ProfileScreen, i18n.t('screens.profile'))} {createScreenCollapsibleStack("club-list", HomeStack, ClubListScreen, i18n.t('clubs.clubList'))} { getScreen = (data: Object) => { this.data = data[0]; + const {containerPaddingTop, scrollIndicatorInsetTop, onScroll} = this.props.collapsibleStack; return ( - - {/*$FlowFixMe*/} - +