mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
hide bottom button on tablet mode
This commit is contained in:
@@ -10,7 +10,7 @@ import { normalize, SIZE } from '../../utils/SizeUtils';
|
||||
import {PressableButton} from '../PressableButton';
|
||||
|
||||
const translateY = new Animated.Value(0);
|
||||
export const ContainerBottomButton = ({title, onPress, color}) => {
|
||||
export const ContainerBottomButton = ({title, onPress, color,shouldShow =false}) => {
|
||||
const [state] = useTracked();
|
||||
const {colors} = state;
|
||||
const insets = useSafeAreaInsets();
|
||||
@@ -42,7 +42,7 @@ export const ContainerBottomButton = ({title, onPress, color}) => {
|
||||
};
|
||||
}, []);
|
||||
|
||||
return (
|
||||
return DDS.isLargeTablet() && !shouldShow ? null : (
|
||||
<Animated.View
|
||||
style={{
|
||||
position: 'absolute',
|
||||
|
||||
Reference in New Issue
Block a user