This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| GetState, | |
| PartialState, | |
| SetState, | |
| State, | |
| StateCreator, | |
| StoreApi, | |
| } from './vanilla' | |
| export const redux = <S extends State, A extends { type: unknown }>( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Dimensions } from 'react-native'; | |
| const { height: screenHeight, width: screenWidth } = Dimensions.get('window'); | |
| const EACH_HEIGHT_UNIT = screenHeight / 100 | |
| const EACH_WIDTH_UNIT = screenWidth / 100 | |
| /** | |
| * device height percentage | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { withSpring } from 'react-native-reanimated' | |
| export interface AppleSpringConfig { | |
| duration?: number | |
| bounciness?: number | |
| velocity?: number | |
| overshootClamping?: boolean | |
| restSpeedThreshold?: number | |
| restDisplacementThreshold?: number | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import MaskedView from '@react-native-masked-view/masked-view' | |
| import { Stack } from 'expo-router' | |
| import { useMemo } from 'react' | |
| import { Platform, StyleSheet, Text, useWindowDimensions, View } from 'react-native' | |
| import { Gesture, GestureDetector } from 'react-native-gesture-handler' | |
| import Animated, { | |
| cancelAnimation, | |
| Easing, | |
| useAnimatedStyle, | |
| useDerivedValue, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * <BurningPhotoCard /> — a photo card printed on a sheet of paper that catches | |
| * fire and burns away when you press Delete. | |
| * | |
| * Everything is in this one file: the WGSL shaders, the WebGPU burn simulation, | |
| * the procedural paper grain, the Skia rasterizer that prints the card, and the | |
| * React component. Drop it in your project and import it. | |
| * | |
| * --------------------------------------------------------------------------- | |
| * INSTALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Who are you?</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" rel="stylesheet"> |