allow bottom button to be hidden

This commit is contained in:
ammarahm-ed
2020-01-13 17:34:29 +05:00
parent 7aec61198b
commit 9c99b4989d
5 changed files with 20 additions and 7 deletions

View File

@@ -24,10 +24,10 @@ export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
);
export const Container = ({
navigation,
children,
bottomButtonOnPress,
bottomButtonText,
noBottomButton = false,
}) => {
// State
const {colors} = useAppContext();
@@ -72,7 +72,7 @@ export const Container = ({
}}>
{children}
{buttonHide ? null : (
{buttonHide || noBottomButton ? null : (
<TouchableOpacity
onPress={bottomButtonOnPress}
activeOpacity={opacity}