Fix size limit for storing avatar

https://github.com/Cretezy/redux-persist-expo-securestore/issues/9
This commit is contained in:
Zhiyuan Zheng 2021-01-22 23:55:16 +01:00
parent 7f3b70110b
commit aa467f6911
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
3 changed files with 12 additions and 11 deletions

View File

@ -10,6 +10,7 @@
},
"dependencies": {
"@expo/react-native-action-sheet": "^3.8.0",
"@neverdull-agency/expo-unlimited-secure-store": "^1.0.10",
"@react-native-async-storage/async-storage": "^1.13.2",
"@react-native-community/masked-view": "0.1.10",
"@react-native-community/netinfo": "^5.9.7",
@ -71,7 +72,6 @@
"react-redux": "^7.2.2",
"react-timeago": "^5.2.0",
"redux-persist": "^6.0.0",
"redux-persist-expo-securestore": "^2.0.0",
"sentry-expo": "^3.0.4",
"tslib": "^2.0.3"
},
@ -107,4 +107,4 @@
"typescript": "~4.1.3"
},
"private": true
}
}

View File

@ -1,3 +1,4 @@
import createSecureStore from '@neverdull-agency/expo-unlimited-secure-store'
import AsyncStorage from '@react-native-async-storage/async-storage'
import {
combineReducers,
@ -8,7 +9,6 @@ import contextsSlice from '@utils/slices/contextsSlice'
import instancesSlice from '@utils/slices/instancesSlice'
import settingsSlice from '@utils/slices/settingsSlice'
import { persistReducer, persistStore } from 'redux-persist'
import createSecureStore from 'redux-persist-expo-securestore'
const secureStorage = createSecureStore()
@ -24,14 +24,13 @@ const instancesPersistConfig = {
key: 'instances',
prefix,
version: 1,
storage: secureStorage,
debug: true
storage: secureStorage
}
const settingsPersistConfig = {
key: 'settings',
prefix,
storage: secureStorage
storage: AsyncStorage
}
const rootPersistConfig = {

View File

@ -1936,6 +1936,13 @@
"@babel/runtime" "^7.7.2"
regenerator-runtime "^0.13.3"
"@neverdull-agency/expo-unlimited-secure-store@^1.0.10":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@neverdull-agency/expo-unlimited-secure-store/-/expo-unlimited-secure-store-1.0.10.tgz#1e78b502257b267fc918a85eaa41aa01a46d2007"
integrity sha512-3rGdoSvp6vFgcwMep+r38xVfHYuQKDKBUQ8Kl4UtOfWcQR4iCKb3WiB5GxPuooVFuV54IGp/r4/tMTi+pQoReA==
dependencies:
crypto-js "^3.1.9-1"
"@react-native-async-storage/async-storage@^1.13.2":
version "1.13.3"
resolved "https://registry.yarnpkg.com/@react-native-async-storage/async-storage/-/async-storage-1.13.3.tgz#bba0c69541de4da12f3a47fe07698fda84b16135"
@ -8959,11 +8966,6 @@ redent@^2.0.0:
indent-string "^3.0.0"
strip-indent "^2.0.0"
redux-persist-expo-securestore@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/redux-persist-expo-securestore/-/redux-persist-expo-securestore-2.0.0.tgz#990d8c007c39a9a624b6311d09952b6b221a548e"
integrity sha512-swD6sC6QCCHyKBV0hFQIBEiO8ph2Nc6Bs96hZ7Qq5iciO/Mk2T6ZDRR8e23jWDjGK5I8uCr4in7ZVb+RPbENQA==
redux-persist@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/redux-persist/-/redux-persist-6.0.0.tgz#b4d2972f9859597c130d40d4b146fecdab51b3a8"