hide bottom button on tablet mode

This commit is contained in:
ammarahm-ed
2020-11-20 01:20:59 +05:00
parent da0d911ff0
commit 38d4b13c80

View File

@@ -10,7 +10,7 @@ import { normalize, SIZE } from '../../utils/SizeUtils';
import {PressableButton} from '../PressableButton'; import {PressableButton} from '../PressableButton';
const translateY = new Animated.Value(0); const translateY = new Animated.Value(0);
export const ContainerBottomButton = ({title, onPress, color}) => { export const ContainerBottomButton = ({title, onPress, color,shouldShow =false}) => {
const [state] = useTracked(); const [state] = useTracked();
const {colors} = state; const {colors} = state;
const insets = useSafeAreaInsets(); const insets = useSafeAreaInsets();
@@ -42,7 +42,7 @@ export const ContainerBottomButton = ({title, onPress, color}) => {
}; };
}, []); }, []);
return ( return DDS.isLargeTablet() && !shouldShow ? null : (
<Animated.View <Animated.View
style={{ style={{
position: 'absolute', position: 'absolute',