This file contains 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
npm install --save-dev @fortawesome/fontawesome-pro |
This file contains 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 from "react" | |
import { Text as ReactNativeText, StyleProp, TextStyle } from 'react-native' | |
import { NoExtraProperties, hasDefinedProperty, isArray, isObject } from "../types"; | |
interface TextProps { | |
style?: StyleProp<TextStyle>; | |
children: string; | |
} | |
/** In our application fontFamily is required */ |
This file contains 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
const { state, offsetY, translationY, velocityY } = useMemoOne( | |
() => ({ | |
state: new Value(State.UNDETERMINED), | |
offsetY: new Value<number>(0), | |
translationY: new Value<number>(0), | |
velocityY: new Value<number>(0) | |
}), | |
[] | |
); |
This file contains 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
const animateTranslation = ( | |
clock: Animated.Clock, | |
position: Animated.Value<number>, | |
translation: Animated.Value<number>, | |
velocity: Animated.Value<number>, | |
offset: Animated.Value<number>, | |
min: Animated.Value<number>, | |
max: Animated.Value<number>, | |
gestureState: Animated.Value<State> | |
) => { |
This file contains 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, { useMemo } from 'react'; | |
import { | |
TouchableWithoutFeedbackProps, | |
TouchableWithoutFeedback, | |
TextStyle | |
} from 'react-native'; | |
import { ViewStyleProp } from '../../../types'; | |
import Animated, { | |
useSharedValue, |
This file contains 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, { useCallback, useState } from 'react'; | |
import Animated, { | |
measure, | |
cancelAnimation, | |
useAnimatedRef, | |
useSharedValue, | |
useDerivedValue, | |
withTiming, | |
Easing, | |
useAnimatedStyle, |
This file contains 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, { useCallback, useState } from 'react'; | |
import Animated, { | |
measure, | |
cancelAnimation, | |
useAnimatedRef, | |
useSharedValue, | |
useDerivedValue, | |
withTiming, | |
Easing, | |
useAnimatedStyle, |
This file contains 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, { useState, useCallback, useEffect } from 'react'; | |
import { LayoutChangeEvent, Text } from 'react-native'; | |
import Animated, { | |
useSharedValue, | |
useAnimatedRef, | |
runOnUI, | |
measure | |
} from 'react-native-reanimated'; | |
function useAnimatedState<T>(initial: T) { |
This file contains 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, { useState, useCallback, useEffect } from 'react'; | |
import { LayoutChangeEvent, Text } from 'react-native'; | |
import Animated, { | |
useSharedValue, | |
useAnimatedRef, | |
runOnUI, | |
measure | |
} from 'react-native-reanimated'; | |
function useAnimatedState<T>(initial: T) { |
This file contains 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, { useState, useCallback, useEffect } from 'react'; | |
import { LayoutChangeEvent, Text } from 'react-native'; | |
import Animated, { | |
useSharedValue, | |
useAnimatedRef, | |
runOnUI, | |
measure | |
} from 'react-native-reanimated'; | |
function useAnimatedState<T>(initial: T) { |
OlderNewer