Fix: Adding Category/Repo buttons position

This commit is contained in:
nyagami
2024-06-12 23:45:51 +07:00
parent f4d3d9d4eb
commit a5d073a1ec
2 changed files with 4 additions and 5 deletions
+3 -1
View File
@@ -18,6 +18,7 @@ import { Category } from '@database/types';
import CategoryCard from './components/CategoryCard';
import { orderBy } from 'lodash-es';
import CategorySkeletonLoading from './components/CategorySkeletonLoading';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
const CategoriesScreen = () => {
const theme = useTheme();
@@ -25,6 +26,7 @@ const CategoriesScreen = () => {
const [isLoading, setIsLoading] = useState(true);
const [categories, setCategories] = useState<Category[]>();
const { bottom } = useSafeAreaInsets();
const getCategories = async () => {
try {
@@ -105,7 +107,7 @@ const CategoriesScreen = () => {
/>
)}
<FAB
style={[styles.fab, { backgroundColor: theme.primary }]}
style={[styles.fab, { backgroundColor: theme.primary, bottom: bottom }]}
color={theme.onPrimary}
label={getString('common.add')}
uppercase={false}
@@ -72,10 +72,7 @@ const SettingsBrowseScreen = () => {
/>
)}
<FAB
style={[
styles.fab,
{ backgroundColor: theme.primary, bottom: bottom + 16 },
]}
style={[styles.fab, { backgroundColor: theme.primary, bottom: bottom }]}
color={theme.onPrimary}
label={getString('common.add')}
uppercase={false}