Fix: move imports and constants for the api-polyfill over from their old location
parent
a3d2db9645
commit
57d876a530
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue