Fix: move imports and constants for the api-polyfill over from their old location

zio/stable
Paul Frazee 2023-01-26 17:38:25 -06:00
parent a3d2db9645
commit 57d876a530
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,7 @@
import {sessionClient as AtpApi} from '@atproto/api'
import RNFS from 'react-native-fs'
const TIMEOUT = 10e3 // 10s
export function doPolyfill() {
AtpApi.xrpc.fetch = fetchHandler

View File

@ -4,12 +4,7 @@
*/
// import {ReactNativeStore} from './auth'
import {
sessionClient as AtpApi,
AppBskyEmbedImages,
AppBskyEmbedExternal,
} from '@atproto/api'
import RNFS from 'react-native-fs'
import {AppBskyEmbedImages, AppBskyEmbedExternal} from '@atproto/api'
import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from '../models/root-store'
import {extractEntities} from '../../lib/strings'
@ -17,8 +12,6 @@ import {isNetworkError} from '../../lib/errors'
import {LinkMeta} from '../../lib/link-meta'
import {Image} from '../../lib/images'
const TIMEOUT = 10e3 // 10s
export interface ExternalEmbedDraft {
uri: string
isLoading: boolean