fix(android): use Animated.FlatList for matches scroll

Use Reanimated's built-in Animated.FlatList instead of manually wrapping
with createAnimatedComponent to fix Android crash where animated scroll
handler binds before the native node is registered.

Also includes v1.0.3 version bump and expo-sharing pin.
This commit is contained in:
jjbrunton committed 2026-01-27 20:19:28 +00:00
1 parent ce419fee8b
commit 620369a7ce
10 files changed
+111 -76

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { View, Text, StyleSheet, FlatList, RefreshControl, TouchableOpacity, ActivityIndicator, Platform, useWindowDimensions, ScrollView } from "react-native";
import { View, Text, StyleSheet, RefreshControl, TouchableOpacity, ActivityIndicator, Platform, useWindowDimensions, ScrollView } from "react-native";
import { BlurView } from "expo-blur";
import { useMatchStore, useAuthStore, type PendingQuestion } from "../../src/store";
import { useEffect, useCallback, useState, useRef } from "react";
@@ -31,7 +31,7 @@ const SECONDARY_RGBA = 'rgba(155, 89, 182, ';
const MAX_CONTENT_WIDTH = 500;
const HEADER_SCROLL_DISTANCE = 100;
const AnimatedFlatList = Animated.createAnimatedComponent(FlatList);
const AnimatedFlatList = Animated.FlatList;
export default function MatchesScreen() {
const {