Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix iOS pull to refresh on item iew page

Leendert de Borst5f9ab218293d
diff --git a/apps/mobile-app/app/(tabs)/items/[manifestId]/[id]/index.tsx b/apps/mobile-app/app/(tabs)/items/[manifestId]/[id]/index.tsx
index d1fff0ace..5382b297a 100644
--- a/apps/mobile-app/app/(tabs)/items/[manifestId]/[id]/index.tsx
+++ b/apps/mobile-app/app/(tabs)/items/[manifestId]/[id]/index.tsx
@@ -307,6 +307,7 @@ export default function ItemDetailsScreen() : React.ReactNode {
return (
<ThemedContainer>
<ThemedScrollView
+ contentContainerStyle={styles.scrollContent}
refreshControl={
<RefreshControl
refreshing={refreshing}
@@ -370,6 +371,9 @@ const styles = StyleSheet.create({
height: 48,
width: 48,
},
+ scrollContent: {
+ flexGrow: 1,
+ },
serviceName: {
fontSize: 24,
fontWeight: 'bold',
diff --git a/apps/mobile-app/components/themed/ThemedScrollView.tsx b/apps/mobile-app/components/themed/ThemedScrollView.tsx
index 46bc2d092..e6e359137 100644
--- a/apps/mobile-app/components/themed/ThemedScrollView.tsx
+++ b/apps/mobile-app/components/themed/ThemedScrollView.tsx
@@ -17,6 +17,7 @@ export function ThemedScrollView({
style,
lightColor,
darkColor,
+ contentContainerStyle,
keyboardShouldPersistTaps = 'handled',
...otherProps
}: ThemedScrollViewProps): React.ReactNode {
@@ -28,7 +29,7 @@ export function ThemedScrollView({
return (
<ScrollView
style={[styles.container, { paddingTop: paddingTop }, style]}
- contentContainerStyle={{ paddingBottom: paddingBottom }}
+ contentContainerStyle={[{ paddingBottom: paddingBottom }, contentContainerStyle]}
scrollIndicatorInsets={{ bottom: paddingBottom }}
keyboardShouldPersistTaps={keyboardShouldPersistTaps}
{...otherProps}