1
0
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:
Zhiyuan Zheng
2021-01-28 00:41:53 +01:00
parent 6c6d563aae
commit ea3fa87057
86 changed files with 3384 additions and 35 deletions

View File

@@ -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()

View File

@@ -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, {

View File

@@ -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]