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 AudioRecorderPlayer, { PlayBackType } from "react-native-audio-recorder-player"; | |
import { isIOS } from "utils/utils"; | |
type Callback = (args: { data?: PlayBackType; status: AudioStatus }) => void; | |
type Path = string | undefined; | |
export enum AudioStatus { | |
PAUSED = "PAUSED", | |
PLAYING = "PLAYING", | |
RESUMED = "RESUMED", |
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, { memo, ReactNode } from "react"; | |
import { LayoutChangeEvent, StyleProp, StyleSheet, ViewStyle } from "react-native"; | |
import Animated from "react-native-reanimated"; | |
import isEqual from "react-fast-compare"; | |
import type { State } from "./types"; | |
type Props = { | |
animatedHeight: any; | |
children: ReactNode; |
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 locationOptions: LocationOptions = { | |
accuracy: LocationAccuracy.Balanced, | |
distanceInterval: 250 | |
}; | |
const lastKnownLocationOptions: LocationLastKnownOptions = { | |
maxAge: 60000, | |
requiredAccuracy: 1000 | |
}; |
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, { memo, useMemo } from "react"; | |
import { Platform, StyleSheet, View } from "react-native"; | |
import Svg, { Path } from "react-native-svg"; | |
import { moderateScale } from "react-native-size-matters"; | |
import { useStyle } from "react-native-style-utilities"; | |
import useThemeContext from "@themes/themeContext"; | |
import { Chat_Message } from "@generated/graphql"; | |
import { currentUser } from "@functions/auth"; |
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} from 'react'; | |
import {Dimensions, StyleSheet, View} from 'react-native'; | |
import { | |
Gesture, | |
GestureDetector, | |
GestureHandlerRootView, | |
} from 'react-native-gesture-handler'; | |
import Animated, { | |
Easing, | |
interpolate, |
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
# Copyright (c) Facebook, Inc. and its affiliates. | |
# | |
# This source code is licensed under the MIT license found in the | |
# LICENSE file in the root directory of this source tree. | |
def use_react_native! (options={}) | |
# The prefix to react-native | |
prefix = options[:path] ||= "../node_modules/react-native" | |
# Include Fabric dependencies |
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 [isFocused, setIsFocued] = React.useState(true) | |
const setFocus = React.useCallback(() => { | |
setIsFocued(true) | |
}, []) | |
const setBlur = React.useCallback(() => { | |
setIsFocued(false) | |
}, []) |
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 { | |
GiftedChat, | |
SystemMessage, | |
// ...all other imports | |
} from "react-native-gifted-chat | |
<GiftedChat | |
// ...all other stuff |
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 AsyncStorage from '@react-native-community/async-storage'; | |
import {Navigation} from 'react-native-navigation'; | |
import {uniqBy} from 'lodash'; | |
// using uuid/v4 to generate unique keys for each notification for FlatList etc. | |
import uuidv4 from 'uuid/v4'; | |
// AsyncStorage.clear(); | |
export const handleNotifications = async (notification, condition, ref) => { | |
console.log('COMING FROM ', ref); |
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
[ | |
{"name": "Αττικής", "location": [38.08333 ,23.5]}, | |
{"name": "'Αγιος Νικόλαος Αθηνών'", "location": [38.005852, 23.729193]}, | |
{"name": "Άγιος Ελευθέριος", "location": [38.021036, 23.729219]}, | |
{"name": "Αθήνα κέντρο", "location": [37.980812, 23.724287]}, | |
{"name": "Αμπελόκηποι", "location": [37.988734, 23.763039]}, | |
{"name": "Αττική Αθηνών", "location": [37.997651, 23.721319]}, | |
{"name": "Γκάζι", "location": [37.978538, 23.712526]}, | |
{"name": "Γουδί", "location": [37.985828, 23.767172]}, | |
{"name": "Ελαιώνας", "location": [38.007859, 23.667688]}, |
NewerOlder