fix(mobile): restore native scroll-edge effects on forms and PRs (#18507)

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-10-11 22:09:05 -07:00
1 parent d514a8c617
commit 6f6197c465
8 files changed
+47 -9

No files matched your search

@@ -5,7 +5,7 @@ import type { PullRequestThreadComment } from "@t3tools/contracts";
import { useRef, useState } from "react";
import { ActivityIndicator, Platform, ScrollView, View } from "react-native";
import { KeyboardAvoidingView, useKeyboardState } from "react-native-keyboard-controller";
import { ScrollViewMarker } from "react-native-screens";
import { NativeScrollViewMarker as ScrollViewMarker } from "../../native/NativeScrollViewMarker";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText";
import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
@@ -153,7 +153,7 @@ function Discussion({ params }: { params: PullRequestParams & { readonly discuss
/>
</NativeHeaderToolbar>
) : null}
<ScrollViewMarker style={{ flex: 1 }} scrollEdgeEffects={{ top: "soft", bottom: "soft" }}>
<ScrollViewMarker style={{ flex: 1 }}>
<ScrollView
className="flex-1"
contentInsetAdjustmentBehavior="automatic"
@@ -52,7 +52,7 @@ import {
StyleSheet,
View,
} from "react-native";
import { ScrollViewMarker } from "react-native-screens";
import { NativeScrollViewMarker as ScrollViewMarker } from "../../native/NativeScrollViewMarker";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AppText as Text } from "../../components/AppText";
@@ -115,7 +115,7 @@ const EMPTY_IDS: readonly string[] = [];
function PullRequestTabScrollView(props: ScrollViewProps) {
const insets = useSafeAreaInsets();
return (
<ScrollViewMarker style={{ flex: 1 }} scrollEdgeEffects={{ top: "soft", bottom: "soft" }}>
<ScrollViewMarker style={{ flex: 1 }}>
<ScrollView
{...props}
automaticallyAdjustContentInsets={false}