* MM_36721 : Added testscript for AppVersion component + Corrected imported Type definition * Added CompassIcon component * Adding TextProps to FormattedText component * Added status bar component * Added User status component * Added ProfilePicture, did_update hook and sorted imports * Added ChannelIcon component * Added ChannelTitle component * Added Channel Nav Bar component * Added channel screen * Added withSafeAreaInsets HOC and Added font compassIcon to Xcode * Fix Android crashes as it is looking for MainSidebar and SettingsSidebar * Revert "Fix Android crashes as it is looking for MainSidebar and SettingsSidebar" This reverts commit 62ea11ae691e83bbe3c5e81c243b8ed89fa96083. * Channel Icon clean up * Updated assets/compass-icons files * Updated channel title component * ProfilePicture - Code clean up * UserStatus component - cleaned * Channel screen fix * Fix TS issue * Update index.tsx * Removed ProfilePicture component To be added when needed * Removed UserStatus component * Added IS_LANDSCAPE constant * Code review correction * Fix ts issue * Added channel.displayName to reinforce security for findAndObserve on potential null teammate profile Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Fix observation on array vs single element * Refactored ChannelTitle component Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Refactored ChannelGuestLabel * Refactored ChannelDisplayName * ChannelTitle cleaned up * Fix roles check * Removing unused user utils * Minor clean up * Fix TS issue * Code Refactored. * Fix render bug in channel_display_name * Added logout button * refactored code Co-authored-by: Avinash Lingaloo <> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
57 lines
2 KiB
JavaScript
57 lines
2 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
module.exports = {
|
|
presets: [
|
|
'module:metro-react-native-babel-preset',
|
|
'@babel/preset-typescript',
|
|
['@babel/preset-env', {targets: {node: 'current'}}],
|
|
],
|
|
env: {
|
|
production: {
|
|
plugins: ['transform-remove-console'],
|
|
},
|
|
},
|
|
plugins: [
|
|
'@babel/plugin-transform-runtime',
|
|
['@babel/plugin-proposal-decorators', {legacy: true}],
|
|
['@babel/plugin-transform-flow-strip-types'],
|
|
['@babel/plugin-proposal-class-properties', {loose: true}],
|
|
['module-resolver', {
|
|
root: ['.'],
|
|
alias: {
|
|
'@actions': './app/actions',
|
|
'@app': './app/',
|
|
'@assets': './dist/assets',
|
|
'@client': './app/client',
|
|
'@components': './app/components',
|
|
'@constants': './app/constants',
|
|
'@context': './app/context',
|
|
'@database': './app/database',
|
|
'@helpers': './app/helpers',
|
|
'@hooks': './app/hooks',
|
|
'@i18n': './app/i18n',
|
|
'@init': './app/init',
|
|
'@notifications': './app/notifications',
|
|
'@queries': './app/queries',
|
|
'@screens': './app/screens',
|
|
'@share': './share_extension',
|
|
'@store': './app/store',
|
|
'@telemetry': './app/telemetry',
|
|
'@test': './test',
|
|
'@typings': './types',
|
|
'@utils': './app/utils',
|
|
'@websocket': './app/client/websocket',
|
|
},
|
|
}],
|
|
['module:react-native-dotenv', {
|
|
moduleName: '@env',
|
|
path: '.env',
|
|
blacklist: null,
|
|
whitelist: null,
|
|
safe: false,
|
|
allowUndefined: true,
|
|
}],
|
|
'react-native-reanimated/plugin',
|
|
],
|
|
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],
|
|
};
|