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 * as React from 'react' | |
| import { Image, StatusBar, StyleSheet, useWindowDimensions } from 'react-native' | |
| import { | |
| PanGestureHandler, | |
| PinchGestureHandler, | |
| PinchGestureHandlerGestureEvent, | |
| TapGestureHandler, | |
| TapGestureHandlerGestureEvent, | |
| } from 'react-native-gesture-handler' | |
| import Animated, { |
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 * as React from 'react'; | |
| import { LayoutAnimation, Pressable, PressableProps } from 'react-native'; | |
| type ChildrenOrRenderProp = React.ReactNode | ((mode: Context['mode']) => React.ReactNode); | |
| type RewriteChildren<PropsType = Record<string, unknown>> = React.FC< | |
| Omit<PropsType, 'children'> & { children?: ChildrenOrRenderProp } | |
| >; | |
| interface Context { |
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
| function ng --description "ng <port>" | |
| if test -z "$argv[1]" | |
| set port 3000 | |
| else | |
| set port $argv[1] | |
| end | |
| # Run ngrok in the background | |
| ngrok http $port > /dev/null & |
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 android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.RectF; | |
| import android.support.annotation.Nullable; | |
| import android.util.AttributeSet; | |
| import android.util.DisplayMetrics; | |
| import android.util.TypedValue; | |
| import android.view.View; |
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 React, { JSX } from 'react' | |
| type IntrinsicElements = keyof JSX.IntrinsicElements | |
| // Intrinsic elements e.g. 'div' | |
| type IntrinsicElementProps<Element extends IntrinsicElements> = { | |
| as?: Element | |
| } & React.ComponentPropsWithRef<Element> | |
| // Custom React components e.g. next/link |
OlderNewer