mattermost-mobile/app/screens/mfa/shield.tsx
Elias Nahum b8c088cc70
Upgrade RN as well as update or replace other dependencies (#8011)
* start upgrade to RN 74

* migrate react-native-fs to expo-file-system

* exclude expo-asset module

* fix database manager remove directory

* fix: android network helper

* include expo on android

* temporarily disable android dep lock

* replace react-native-create-thumbnail with expo-video-thumnails

* update patches file version

* fix android build on 74

* create local library to replace MattermostManaged, Notifications and SplitView modules with new arch support

* migrate app to use new mattermost-rnutils library

* remove unused flipper class for android unsigned

* fix mattermost-rnutils android foldedObserver lifecycle

* use mattermost-rnutils on Android

* use mattermost-rnutils on iOS

* path react-native-navigation to not crash when activity is not NavigationActivity

* create local library for android share extension with new arch support

* Replace ShareModule with @mattermost/rnshare library

* remove ShareModule from android native code

* update react-intl

* update nodejs to 20.x.x npm to 10.x.x and dev deps

* update @gorhom/bottom-sheet

* use MattermostShare conditionally based on the platform

* update @react-native-camera-roll/camera-roll

* remove unused react-native-calendars

* fix metro config

* fix terminate session race condition

* remove unused analytics

* replace react-native-device-info with expo-application and expo-device

* update @react-native-clipboard/clipboard

* update @react-native-community/datetimepicker

* update @react-native-community/netinfo

* update @sentry/react-native

* update react-native-document-picker

* update react-native-gesture-handler

* update react-native-share

* update react-native-svg and react-native-svg-transformer

* update react-native-vector-icons

* update babel

* update react-native-shadow-2

* update semver

* remove react-native-svg-transformer and convert svg files to svg components

* fix @mattermost/rnshare new-arch build on android

* remove react-native-create-thumbnail resolution in build.gradle

* create @mattermost/hardware-keyboard library to replace hw-keyboard-events

* fix hardware-keyboard library

* fix rnutils library

* create @mattermost/keyboard-tracker library

* replace react-native-keyboard-tracking-view with @mattermost/keyboard-tracker

* fix: rnutils to not crash on lateinit context

* fix: rnutils delete database

* revert changes to session_manager

* Removed react-native-webview and added expo-web-browser instead

With expo-web-browser we no longer need the webview for SSO login
the SSO login is now done by using "custom Chrome tabs" on Android
and ASWebAuthenticationSession on iOS

* remove patch for react-native-keyboard-tracking-view

* replace react-native-linear-gradient with expo-linear-gradient

* replace react-native-in-app-review with expo-store-review

* fix: shared group database directory on ios

* replace react-native-fast-image with expo-image

* remove unusued type def for react-native-keyboard-tracking-view

* replace react-native-elements and react-native-button with @rneui

* node version

* update sizzling methods

* fix tests using jest-expo

* replace jail-monkey with expo-device

* update babel deps

* update typescript eslint

* update rn and expo

* react-native-document-picker @react-native-camera-roll/camera-roll @react-native-community/datetimepicker react-native-reanimated react-native-safe-area-context

* update patches

* update @sentry/react-native

* upgrade react-native-navigation

* update expo & expo-image

* upgrade to working version of @sentry/react-native

* update node, cocoapods, bundler, fastlane versions

* @testing-library/react-native and eslint-plugin-jest

* fix: FloatingTextInput causing a crash with reanimated

* update sentry, localize, @types/lodash and uuid

* fix floating text input label

* update react-native-video

* fix: cannot calculate shadow efficiently on some components

* fix: reduce motion warning for bottomSheet

* fix: shadow on YouTube component

* update react-native-webrtc expo and @typescript-eslint

* audit fix

* fix swizzling bad merge

* temp use of github dependency for @mattermost libraries

* feedback review

* feedback review

* npm audit fix

* update bundle deps

* update @mattermost/react-native-turbo-log

* update deps
2024-06-19 09:33:45 +08:00

48 lines
2.5 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import * as React from 'react';
import Svg, {type SvgProps, Path} from 'react-native-svg';
const Shield = (props: SvgProps) => (
<Svg
width={102}
height={123}
fill='none'
{...props}
>
<Path
fill='#CC8F00'
d='m101.675 27.996-2.38-11.912a6.891 6.891 0 0 0-2.902-4.33C85.227 4.172 70.423.224 51.02.224 31.616.224 16.8 4.172 5.673 11.78a6.944 6.944 0 0 0-2.902 4.33L.337 27.996a4.072 4.072 0 0 0 .175 2.237c.267.715.73 1.344 1.337 1.817 3.209 2.461 4.667 5.712 5.349 9.819a30.225 30.225 0 0 1-.535 12.99c-9.936 38.395 6.793 55.861 44.29 67.918C88.396 110.72 105.166 93.254 95.23 54.86a30.444 30.444 0 0 1-.535-12.991c.735-4.107 2.193-7.358 5.349-9.82a4.112 4.112 0 0 0 1.407-1.795c.289-.717.367-1.5.224-2.258Z'
/>
<Path
fill='#FFBC1F'
d='M51.02 113.063C16.946 101.507 8.054 87.108 15.81 57.124a39.17 39.17 0 0 0 .682-16.874A24.727 24.727 0 0 0 10.1 26.996l1.658-8.16C21.493 12.49 34.344 9.41 51.02 9.41c16.676 0 29.513 3.08 39.249 9.424l1.658 8.16a24.713 24.713 0 0 0-6.379 13.255 39.167 39.167 0 0 0 .682 16.874c7.716 29.97-1.136 44.449-35.21 55.939Z'
/>
<Path
fill='#FFBC1F'
d='M51.02 113.063C16.946 101.507 8.054 87.108 15.81 57.124a39.17 39.17 0 0 0 .682-16.874A24.727 24.727 0 0 0 10.1 26.996l1.658-8.16C21.493 12.49 34.344 9.41 51.02 9.41c16.676 0 29.513 3.08 39.249 9.424l1.658 8.16a24.713 24.713 0 0 0-6.379 13.255 39.167 39.167 0 0 0 .682 16.874c7.716 29.97-1.136 44.449-35.21 55.939Z'
/>
<Path
fill='#FFBC1F'
d='M51.02 52.452V9.438c-16.676 0-29.527 3.08-39.262 9.424l-1.658 8.16a24.727 24.727 0 0 1 6.392 13.255c.717 4.03.794 8.147.227 12.2l34.301-.025Z'
/>
<Path
fill='#FFBC1F'
d='M51.02 113.063c34.073-11.49 42.926-25.969 35.21-55.94a41.203 41.203 0 0 1-.923-4.672H51.02v60.612Z'
/>
<Path
fill='#FFD470'
d='M15.81 57.124c-7.756 29.983 1.137 44.383 35.21 55.939V52.451h-34.3a41.153 41.153 0 0 1-.91 4.673Z'
/>
<Path
fill='#FFD470'
d='M51.02 9.438v43.04h34.287a38.483 38.483 0 0 1 .24-12.202 24.713 24.713 0 0 1 6.38-13.254l-1.659-8.16c-9.695-6.37-22.586-9.424-39.248-9.424Z'
/>
<Path
fill='#6F370B'
d='M71.065 38.934 43.464 68.812l-8.01-5.976H31l12.463 19.915 32.054-43.817h-4.453Z'
/>
</Svg>
);
export default Shield;