mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
allow bottom button to be hidden
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user