* Slide up panel for reaction list * Feedback review * UI Feedback review * Feedback review * Improve slide speed and fix end position * Scroll to top when changing reaction view * dismiss modal without animation so backdrop does not scroll down * Smooth animation to show/hide * Change animation speed
22 lines
760 B
JavaScript
22 lines
760 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import DeviceInfo from 'react-native-device-info';
|
|
import RNFetchBlobFS from 'rn-fetch-blob/fs';
|
|
import keyMirror from 'mattermost-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_X: DeviceInfo.getModel().includes('iPhone X'),
|
|
VIDEOS_PATH: `${RNFetchBlobFS.dirs.CacheDir}/Videos`,
|
|
};
|