Skip to content

Instantly share code, notes, and snippets.

View nyhassan's full-sized avatar

Hassan Naeem nyhassan

View GitHub Profile
@nyhassan
nyhassan / Settings.tsx
Created January 8, 2024 22:57
Turnstile app screens header opacity interpolation
import { useHeaderHeight } from "@react-navigation/elements";
import { Stack } from "expo-router";
import { Platform, ScrollView, StyleSheet, View } from "react-native";
import Animated, {
interpolate,
useAnimatedScrollHandler,
useAnimatedStyle,
useSharedValue,
} from "react-native-reanimated";
import { useTheme } from "src/context/ThemeProvider";
@nyhassan
nyhassan / SubwayStopTabViewExample.tsx
Created January 7, 2024 16:10
Using react-native-collapsible-tab-view in Turnstile
import { MaterialTabBar, Tabs } from "react-native-collapsible-tab-view";
export default function SubwayStopScreen {
// ...setup
return (
<View
style={{
backgroundColor: theme.background["100"],
flex: 1,