Skip to content

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

mobile: use diff sheet size on each platform

ammarahm-ed5d401ac9ac7e
diff --git a/apps/mobile/app/components/sheets/topic-sheet/index.tsx b/apps/mobile/app/components/sheets/topic-sheet/index.tsx
index 5afe03056..e872cfcf5 100644
--- a/apps/mobile/app/components/sheets/topic-sheet/index.tsx
+++ b/apps/mobile/app/components/sheets/topic-sheet/index.tsx
@@ -25,7 +25,13 @@ import React, {
useRef,
useState
} from "react";
-import { Animated, Dimensions, View, RefreshControl } from "react-native";
+import {
+ Animated,
+ Dimensions,
+ View,
+ RefreshControl,
+ Platform
+} from "react-native";
import ActionSheet, {
ActionSheetRef,
FlatList
@@ -224,7 +230,11 @@ export const TopicsSheet = () => {
backgroundColor: colors.nav
}}
keyboardHandlerEnabled={false}
- snapPoints={Config.isTesting === "true" ? [100] : [25, 100]}
+ snapPoints={
+ Config.isTesting === "true"
+ ? [100]
+ : [Platform.OS === "ios" ? 25 : 20, 100]
+ }
initialSnapIndex={0}
backgroundInteractionEnabled
onChange={(position, height) => {