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 AtpAgent from '@atproto/api' | |
import { Secp256k1Keypair } from '@atproto/crypto' | |
import * as ui8 from 'uint8arrays' | |
const OLD_PDS_URL = 'https://bsky.social' | |
const NEW_PDS_URL = 'https://pds.haileyok.com' | |
const CURRENT_HANDLE = 'haileyok.com' | |
const CURRENT_PASSWORD = '' | |
const NEW_HANDLE = 'newphone.pds.haileyok.com' | |
const NEW_ACCOUNT_EMAIL = '' |
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 * as DropdownMenu from 'zeego/dropdown-menu'; | |
import Ellipsis from './Ellipsis'; | |
import { Pressable } from 'react-native'; | |
interface IProps { | |
actions: ContextMenuActionGroup[]; | |
size?: number; | |
children?: React.ReactElement; | |
} |
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
export const usePrefetchFeedImages = (): UsePrefetchFeedImages => { | |
const feedItems = useRef<any[]>([]) | |
const highestPrefetchedIndex = useRef(0) | |
const previousLength = useRef(0) | |
/** | |
* As we scroll down, we want to prefetch images that are about to appear in the feed. | |
* 1. As new items come into view, we get the last viewable item's index | |
* 2. We then prefetch the next 4 items in the data. This includes: |
NewerOlder