useContentWidth (components/AppNavigation.tsx)

winglet · app/src/components/AppNavigation.tsx · typescript · MIT
ui

Reusable navigation shell integrating routing, layout, and state for React Native apps.

// Source: https://github.com/VIKASRP24/winglet | License: MIT | Copyright 2026 vzalyte
// Provided via justclaw.it.com; keep this notice with the code.
import { router, usePathname } from 'expo-router';
import { createContext, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, type ComponentType, type ReactNode } from 'react';
import { BackHandler, Keyboard, Platform, Pressable, ScrollView, StyleSheet, Text, useWindowDimensions, View } from 'react-native';
import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
import Animated, { runOnJS, useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useShallow } from 'zustand/react/shallo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key