* MM-30164 fix safe area insets * Fix unit test setup mock for react-native-device-info * Add insets for edit profile screen * Fix about screen * Fix theme screen * Lock phone screen to portrait * fix unit tests * Fix autocomplete layout
26 lines
930 B
JavaScript
26 lines
930 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {Platform} from 'react-native';
|
|
import DeviceInfo from 'react-native-device-info';
|
|
import RNFetchBlobFS from 'rn-fetch-blob/fs';
|
|
import keyMirror from '@mm-redux/utils/key_mirror';
|
|
|
|
const deviceTypes = keyMirror({
|
|
CONNECTION_CHANGED: null,
|
|
DEVICE_DIMENSIONS_CHANGED: null,
|
|
DEVICE_TYPE_CHANGED: null,
|
|
DEVICE_ORIENTATION_CHANGED: null,
|
|
STATUSBAR_HEIGHT_CHANGED: null,
|
|
});
|
|
|
|
export default {
|
|
...deviceTypes,
|
|
DOCUMENTS_PATH: `${RNFetchBlobFS.dirs.CacheDir}/Documents`,
|
|
IMAGES_PATH: `${RNFetchBlobFS.dirs.CacheDir}/Images`,
|
|
IS_IPHONE_WITH_INSETS: Platform.OS === 'ios' && DeviceInfo.hasNotch(),
|
|
IS_TABLET: DeviceInfo.isTablet(),
|
|
VIDEOS_PATH: `${RNFetchBlobFS.dirs.CacheDir}/Videos`,
|
|
PERMANENT_SIDEBAR_SETTINGS: '@PERMANENT_SIDEBAR_SETTINGS',
|
|
TABLET_WIDTH: 250,
|
|
};
|