Replace custom View-based bottom sheet with @gorhom/bottom-sheet: - Native gesture-driven drag, snap points, pan-down-to-close - Proper safe area handling built in - Wrap app with GestureHandlerRootView - Add react-native-reanimated plugin to Expo config Adds react-native-reanimated and react-native-gesture-handler as native dependencies (requires new EAS build). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
import { ExpoConfig, ConfigContext } from "expo/config";
|
|
|
|
export default ({ config }: ConfigContext): ExpoConfig => ({
|
|
...config,
|
|
name: "trails.cool",
|
|
slug: "mobile",
|
|
version: "0.0.1",
|
|
scheme: "trailscool",
|
|
orientation: "portrait",
|
|
icon: "./assets/icon.png",
|
|
userInterfaceStyle: "light",
|
|
splash: {
|
|
image: "./assets/splash-icon.png",
|
|
resizeMode: "contain",
|
|
backgroundColor: "#ffffff",
|
|
},
|
|
ios: {
|
|
supportsTablet: true,
|
|
bundleIdentifier: "cool.trails.app",
|
|
infoPlist: {
|
|
NSAppTransportSecurity: {
|
|
NSAllowsLocalNetworking: true,
|
|
},
|
|
ITSAppUsesNonExemptEncryption: false,
|
|
},
|
|
},
|
|
android: {
|
|
adaptiveIcon: {
|
|
foregroundImage: "./assets/adaptive-icon.png",
|
|
backgroundColor: "#ffffff",
|
|
},
|
|
package: "cool.trails.app",
|
|
},
|
|
web: {
|
|
favicon: "./assets/favicon.png",
|
|
},
|
|
plugins: [
|
|
"expo-router",
|
|
"expo-secure-store",
|
|
"expo-web-browser",
|
|
"@maplibre/maplibre-react-native",
|
|
["@sentry/react-native", {
|
|
organization: "trails-qq",
|
|
project: "mobile",
|
|
}],
|
|
"expo-sqlite",
|
|
"react-native-reanimated",
|
|
],
|
|
extra: {
|
|
eas: {
|
|
projectId: "93c75cae-fecf-4ce5-8cd8-c823760b12e2",
|
|
},
|
|
},
|
|
});
|