mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
iOS can run
This commit is contained in:
@@ -15,8 +15,10 @@ export interface Props {
|
||||
|
||||
const InstanceAuth = React.memo(
|
||||
({ instanceDomain, instanceUri, appData, goBack }: Props) => {
|
||||
|
||||
const redirectUri = AuthSession.makeRedirectUri({ useProxy: false })
|
||||
const redirectUri = AuthSession.makeRedirectUri({
|
||||
native: 'tooot://instance-auth',
|
||||
useProxy: false
|
||||
})
|
||||
|
||||
const navigation = useNavigation()
|
||||
const queryClient = useQueryClient()
|
||||
|
@@ -1,11 +1,8 @@
|
||||
import * as Analytics from 'expo-firebase-analytics'
|
||||
import React from 'react'
|
||||
import log from './log'
|
||||
|
||||
const dev = () => {
|
||||
if (__DEV__) {
|
||||
Analytics.setDebugModeEnabled(true)
|
||||
|
||||
log('log', 'devs', 'initializing wdyr')
|
||||
const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
||||
whyDidYouRender(React, {
|
||||
|
@@ -6,7 +6,10 @@ import { useQuery, UseQueryOptions } from 'react-query'
|
||||
export type QueryKey = ['Apps', { instanceDomain?: string }]
|
||||
|
||||
const queryFunction = ({ queryKey }: { queryKey: QueryKey }) => {
|
||||
const redirectUri = AuthSession.makeRedirectUri({ useProxy: false })
|
||||
const redirectUri = AuthSession.makeRedirectUri({
|
||||
native: 'tooot://instance-auth',
|
||||
useProxy: false
|
||||
})
|
||||
|
||||
const { instanceDomain } = queryKey[1]
|
||||
|
||||
|
Reference in New Issue
Block a user