mirror of
https://github.com/tooot-app/app
synced 2025-01-31 02:37:13 +01:00
Remove base64 dep
This commit is contained in:
parent
0de7e84f58
commit
49a0e6d63e
@ -69,7 +69,6 @@
|
||||
"react-intl": "^6.2.5",
|
||||
"react-native": "^0.70.6",
|
||||
"react-native-animated-spinkit": "^1.5.2",
|
||||
"react-native-base64": "^0.2.1",
|
||||
"react-native-blurhash": "^1.1.10",
|
||||
"react-native-fast-image": "^8.6.3",
|
||||
"react-native-feather": "^1.1.2",
|
||||
@ -104,7 +103,6 @@
|
||||
"@types/react": "^18.0.26",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"@types/react-native": "^0.70.8",
|
||||
"@types/react-native-base64": "^0.2.0",
|
||||
"@types/react-native-share-menu": "^5.0.2",
|
||||
"@types/valid-url": "^1.0.3",
|
||||
"babel-plugin-module-resolver": "^4.1.0",
|
||||
|
@ -4,10 +4,11 @@ import { useNavigation } from '@react-navigation/native'
|
||||
import apiGeneral from '@utils/api/general'
|
||||
import browserPackage from '@utils/helpers/browserPackage'
|
||||
import { featureCheck } from '@utils/helpers/featureCheck'
|
||||
import queryClient from '@utils/queryHooks'
|
||||
import { TabMeStackNavigationProp } from '@utils/navigation/navigators'
|
||||
import queryClient from '@utils/queryHooks'
|
||||
import { redirectUri, useAppsMutation } from '@utils/queryHooks/apps'
|
||||
import { useInstanceQuery } from '@utils/queryHooks/instance'
|
||||
import { storage } from '@utils/storage'
|
||||
import { StorageAccount } from '@utils/storage/account'
|
||||
import {
|
||||
generateAccountKey,
|
||||
@ -24,12 +25,10 @@ import { debounce } from 'lodash'
|
||||
import React, { RefObject, useCallback, useState } from 'react'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { Alert, Image, KeyboardAvoidingView, Platform, TextInput, View } from 'react-native'
|
||||
import base64 from 'react-native-base64'
|
||||
import { ScrollView } from 'react-native-gesture-handler'
|
||||
import { MMKV } from 'react-native-mmkv'
|
||||
import validUrl from 'valid-url'
|
||||
import CustomText from '../Text'
|
||||
import { storage } from '@utils/storage'
|
||||
import { MMKV } from 'react-native-mmkv'
|
||||
|
||||
export interface Props {
|
||||
scrollViewRef?: RefObject<ScrollView>
|
||||
@ -155,7 +154,7 @@ const ComponentInstance: React.FC<Props> = ({
|
||||
'admin.sign_up': false,
|
||||
'admin.report': false
|
||||
},
|
||||
key: base64.encodeFromByteArray(Random.getRandomBytes(16))
|
||||
key: Math.random().toString(36).slice(2, 12)
|
||||
},
|
||||
page_local: {
|
||||
showBoosts: true,
|
||||
|
16
yarn.lock
16
yarn.lock
@ -3408,13 +3408,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-native-base64@npm:^0.2.0":
|
||||
version: 0.2.0
|
||||
resolution: "@types/react-native-base64@npm:0.2.0"
|
||||
checksum: 6a562ae758dfd06f152a559f7380a7a2da783bf14e70eef8bd4aae0df9dc5971a71888b74e8db552546b94ada198bfc3b6d7db51dd537a8f21767d8729bd10e7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-native-share-menu@npm:5.0.2":
|
||||
version: 5.0.2
|
||||
resolution: "@types/react-native-share-menu@npm:5.0.2"
|
||||
@ -9441,13 +9434,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-native-base64@npm:^0.2.1":
|
||||
version: 0.2.1
|
||||
resolution: "react-native-base64@npm:0.2.1"
|
||||
checksum: 5127c857250cabb9c24f494b56185a4339bd0ebb859824a01c2f4eb3264379556e06efc8e59ffb9585cbf1c5e6fee18f50f4a6e8a1c63fe4b5cedf0658f8c25e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-native-blurhash@npm:^1.1.10":
|
||||
version: 1.1.10
|
||||
resolution: "react-native-blurhash@npm:1.1.10"
|
||||
@ -11246,7 +11232,6 @@ __metadata:
|
||||
"@types/react": ^18.0.26
|
||||
"@types/react-dom": ^18.0.10
|
||||
"@types/react-native": ^0.70.8
|
||||
"@types/react-native-base64": ^0.2.0
|
||||
"@types/react-native-share-menu": ^5.0.2
|
||||
"@types/valid-url": ^1.0.3
|
||||
axios: ^1.2.1
|
||||
@ -11282,7 +11267,6 @@ __metadata:
|
||||
react-intl: ^6.2.5
|
||||
react-native: ^0.70.6
|
||||
react-native-animated-spinkit: ^1.5.2
|
||||
react-native-base64: ^0.2.1
|
||||
react-native-blurhash: ^1.1.10
|
||||
react-native-clean-project: ^4.0.1
|
||||
react-native-fast-image: ^8.6.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user