- First
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 { Dimensions } from 'react-native'; | |
const scale = Dimensions.get('window'); | |
/** | |
* width by Dimensions | |
*/ | |
export const DEVICE_WIDTH = scale.width; | |
/** |
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, FC } from 'react'; | |
import FastImage, { Source } from 'react-native-fast-image'; | |
import Animated, { | |
Extrapolate, | |
interpolate, | |
SharedValue, | |
useAnimatedStyle, | |
} from 'react-native-reanimated'; | |
import { styled } from '@shared/ui/theme'; |
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, { FC, useCallback } from 'react'; | |
import { | |
GestureResponderEvent, | |
Pressable as PressableBase, | |
PressableProps, | |
StyleProp, | |
ViewStyle, | |
} from 'react-native'; | |
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 { TCutOnMiddleArgs } from './types'; | |
/** | |
* compare first and second number | |
* @param firstLength number of cut result | |
* @param secondLength number of base string | |
* @returns boolean | |
*/ | |
const shouldBeCut = (firstLength: number = 0, secondLength: number) => { | |
return firstLength < secondLength; |
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 SwiftUI | |
/// view for resolve different UI for MacOS and iOS | |
/// | |
/// - Usage | |
/// ``` | |
/// UniversalView { | |
/// ViewForIPhone | |
/// } desktop: { | |
/// ViewForMacOSOrIPad |
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 Foundation | |
/// list animation with name from Resources | |
public enum AnimationList: String { | |
/// stub for screens that are still in progress | |
case inProgress = "in-develop-animation" | |
/// animation for showing with some errors | |
case errorAnimation = "error-animation" | |
/// animation for showing with array | |
case emptyAnimation = "empty-animation" |
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
navigation.dispatch( | |
CommonActions.reset({ | |
index: 0, | |
routes: [ | |
{ | |
name: 'protected', | |
state: { | |
index: 0, | |
routes: [ | |
{ |