few more things

This commit is contained in:
Hailey
2024-04-15 02:47:43 -07:00
parent dbbcd275b4
commit d56116a6f4
3 changed files with 5 additions and 16 deletions
+1 -10
View File
@@ -1,12 +1,10 @@
import React from 'react'
import {Keyboard, View} from 'react-native'
import * as Browser from 'expo-web-browser'
import {ComAtprotoServerDescribeServer} from '@atproto/api'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useAnalytics} from '#/lib/analytics/analytics'
import {isAndroid} from 'platform/detection'
import {useLogin} from '#/screens/Login/hooks/useLogin'
import {atoms as a} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
@@ -34,14 +32,7 @@ export const LoginForm = ({
}) => {
const {track} = useAnalytics()
const {_} = useLingui()
const {openAuthSession} = useLogin(serviceUrl)
// This improves speed at which the browser presents itself on Android
React.useEffect(() => {
if (isAndroid) {
Browser.warmUpAsync()
}
}, [])
const {openAuthSession} = useLogin()
const onPressSelectService = React.useCallback(() => {
Keyboard.dismiss()