📅  最后修改于: 2022-03-11 15:03:37.995000             🧑  作者: Mango
import { createKeychainStorage } from 'redux-persist-keychain-storage';
const keychainStorage = createKeychainStorage();
const persistConfig = {
// Keychain expects a reverse domain name qualifier (app bundle ID) style key keyPrefix: 'com.myapp.persist.', storage: keychainStorage,};
const mainReducer = combineReducers({
token: persistReducer({ ...persistConfig,key: 'token' }),
}
);