* Upgrade to rn 0.66.0 * Add keys to re-render post list and channel list * Finish dep updates and rn to 0.66.1 * upgrade more dependencies * Fix select_server tests
16 lines
519 B
TypeScript
16 lines
519 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
|
|
import {DeviceTypes} from '@constants';
|
|
|
|
export async function setupPermanentSidebar() {
|
|
if (DeviceTypes.IS_TABLET) {
|
|
const value = await AsyncStorage.getItem(DeviceTypes.PERMANENT_SIDEBAR_SETTINGS);
|
|
|
|
if (!value) {
|
|
AsyncStorage.setItem(DeviceTypes.PERMANENT_SIDEBAR_SETTINGS, 'true');
|
|
}
|
|
}
|
|
}
|