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 { createContext, forwardRef, useCallback, useMemo } from "react"; | |
| import { FlatList, FlatListProps, ViewToken } from "react-native"; | |
| import Animated, { useSharedValue } from "react-native-reanimated"; | |
| const MAX_VIEWABLE_ITEMS = 4; | |
| type ViewabilityItemsContextType = string[]; | |
| export const ViewabilityItemsContext = createContext< | |
| Animated.SharedValue<ViewabilityItemsContextType> |
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 { Plugin } from 'colord' | |
| declare module 'colord/colord' { | |
| interface Colord { | |
| contrasting(): Colord | |
| } | |
| } | |
| const plugin: Plugin = (ColordClass) => { | |
| ColordClass.prototype.contrasting = function () { |
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
| -- Token Based API Access for Supabase | |
| -- | |
| -- How to configure Supabase (https://supabase.com/) to generate and accept API tokens. | |
| -- | |
| -- (c) 2022 Felix Zedén Yverås | |
| -- Provided under the MIT license (https://spdx.org/licenses/MIT.html) | |
| -- | |
| -- Disclaimer: This file is formatted using pg_format. I'm not happy with the result but | |
| -- prefer to follow a tool over going by personal taste. | |
| -- |
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 from "react"; | |
| import { Dimensions, TextInput, ScrollView } from "react-native"; | |
| import Animated, { | |
| useAnimatedKeyboard, | |
| useAnimatedReaction, | |
| runOnJS, | |
| KeyboardState, | |
| useAnimatedProps, | |
| useAnimatedScrollHandler, |
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 Favorite({ | |
| postId = null, | |
| isLiked: _isLiked = false, | |
| numberOfLikes: _numberOfLikes = 0, | |
| }) { | |
| const [isLiked, setIsLiked] = React.useState(_isLiked); | |
| const [numberOfLikes, setNumberOfLikes] = React.useState(_numberOfLikes ?? 0); | |
| const likeDebounceRef = React.useRef(); | |
| const lastIsLikedStateRef = React.useRef(_isLiked); |
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 { ConfigPlugin, withDangerousMod } from '@expo/config-plugins' | |
| import { | |
| MergeResults, | |
| mergeContents, | |
| removeContents, | |
| } from '@expo/config-plugins/build/utils/generateCode' | |
| import path from 'path' | |
| import fs from 'fs-extra' | |
| const debug = require('debug')('file-viewer-plugin') as typeof console.log |
OlderNewer