fix(mobile): restore native scroll-edge effects on forms and PRs (#18507)
This commit is contained in:
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}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { ScreenScrollView as ScrollView } from "../../components/ScreenScrollView";
|
||||
import { useAtomSet, useAtomValue } from "@effect/atom-react";
|
||||
import { useNavigation } from "@react-navigation/native";
|
||||
import { AsyncResult } from "effect/reactivity";
|
||||
import { Platform, ScrollView, View } from "react-native";
|
||||
import { Platform, View } from "react-native";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
|
||||
import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { ScreenScrollView as ScrollView } from "../../components/ScreenScrollView";
|
||||
import { useAtomSet, useAtomValue } from "@effect/atom-react";
|
||||
import { useNavigation } from "@react-navigation/native";
|
||||
import { AsyncResult } from "effect/reactivity";
|
||||
import { Platform, ScrollView, View } from "react-native";
|
||||
import { Platform, View } from "react-native";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
|
||||
import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { ScreenScrollView as ScrollView } from "../../components/ScreenScrollView";
|
||||
import { useAtomSet, useAtomValue } from "@effect/atom-react";
|
||||
import { AsyncResult } from "effect/reactivity";
|
||||
import { getRecordingPermissionsAsync, requestRecordingPermissionsAsync } from "expo-audio";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { AppState, Linking, Pressable, ScrollView, View } from "react-native";
|
||||
import { AppState, Linking, Pressable, View } from "react-native";
|
||||
import Reanimated, { ReduceMotion, useAnimatedStyle, withTiming } from "react-native-reanimated";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
|
||||
|
||||
Reference in new issue
Block a user