Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix bottom padding for bottom button

ammarahm-ed5d45e4ddd4b5
diff --git a/apps/mobile/src/components/Container/ContainerBottomButton.js b/apps/mobile/src/components/Container/ContainerBottomButton.js
index b7465c59b..bb442a781 100644
--- a/apps/mobile/src/components/Container/ContainerBottomButton.js
+++ b/apps/mobile/src/components/Container/ContainerBottomButton.js
@@ -1,5 +1,5 @@
import React, {useEffect, useState} from 'react';
-import {Keyboard, Text, View} from 'react-native';
+import {Keyboard, Platform, Text, View} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {pv, SIZE, WEIGHT} from '../../common/common';
@@ -49,7 +49,7 @@ export const ContainerBottomButton = ({title, onPress, color}) => {
opacity: buttonHide ? 0 : 1,
position: 'absolute',
paddingHorizontal: 12,
- bottom: insets.bottom + 20,
+ bottom: Platform.OS === 'ios' ? insets.bottom - 10 : insets.bottom + 20,
zIndex: 10,
transform: [
{