mattermost-mobile-upstream/app/components/loading_error/__snapshots__/index.test.tsx.snap
Elias Nahum b6fc85385e
Migrate from RNN to Expo router (#9402)
* Expo-Router partial migration

* Full migration to ExpoRouter

* i18n

* add tests

* Merge branch 'main' into expo-router

* align package-lock.json

* i18n

* feedback review

* feedback review

* android 16kb patch

* Refactored emoji picker keyboard using a state machine

* set android launch_screen in drawables instead of layout

* no conditional hooks

* remove duplicate call in test

* address feedback

* fix tests and address more feedback

* small corrections

* small corrections

* small corrections

* fix draft test

* fix draft test 2

* remove navigateToScreen in draff test

* fix nit in draft test

* remove doc file

* Feedback review

* fix snapshots

* improve test coverage

* fix i18n

* Upgrade t o RN 0.83, other dependencies and new architecture (#9737)

* library hardware-keyboard android new arch support fix

* library rnshare android new arch support fix

* library rnutils android new arch support fix

* library secure-pdf-viewer add new arch support

* Enable new arch on iOS and Android

* update emm and network client with new-arch

* update intune to use new-arch

* performance improvements

* fix tests

* fixes post input on new-arch

* fix android emoji picker

* remove doc

* run tests in parallel

* upgrade to React Native 0.83.9, Expo 55, React 19, and New Architecture

Bumps core dependencies to their latest versions:
- React Native 0.77.3 → 0.83.9 (New Architecture enabled)
- React 18.3.1 → 19.2.5
- Expo SDK 52 → 55
- TypeScript 5.8.3 → 6.0.3
- Node.js 22.16.0 → 24.15.0
- react-native-reanimated 3.17.3 → 4.3.0
- Various other dependency upgrades

Migrates iOS AppDelegate from Objective-C to Swift, updates Android
build tooling and Gradle wrapper, refreshes all patches and font
assets, and adapts app code, tests, and CI workflows throughout for
API changes introduced by these upgrades.

* remove unecessary dismissKeyboard in notifications

* feedback review

* update intune to use new-arch

* update @mattermost deps

* missing i18n string

* additional fixes

* update fastlane
2026-05-13 17:44:55 +08:00

516 lines
11 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Loading Error should match snapshot 1`] = `
<View
style={
{
"alignItems": "center",
"flex": 1,
"justifyContent": "center",
"padding": 20,
}
}
>
<RNSVGSvgView
align="xMidYMid"
bbHeight={94}
bbWidth={122}
fill="none"
focusable={false}
height={94}
meetOrSlice={0}
minX={0}
minY={0}
style={
[
{
"backgroundColor": "transparent",
"borderWidth": 0,
},
{
"flex": 0,
"height": 94,
"width": 122,
},
]
}
vbHeight={94}
vbWidth={122}
width={122}
>
<RNSVGGroup
fill={null}
propList={
[
"fill",
]
}
>
<RNSVGRect
fill={
{
"payload": 4294967295,
"type": 0,
}
}
fillOpacity={0.12}
height={31}
propList={
[
"fill",
"fillOpacity",
]
}
rx={3.75}
width={107}
x={0}
y={32}
/>
<RNSVGRect
fill={
{
"payload": 4294967295,
"type": 0,
}
}
fillOpacity={0.12}
height={27}
propList={
[
"fill",
"fillOpacity",
]
}
rx={3.75}
width={76}
x={46}
y={0}
/>
<RNSVGRect
fill={
{
"payload": 4294967295,
"type": 0,
}
}
fillOpacity={0.12}
height={27}
propList={
[
"fill",
"fillOpacity",
]
}
rx={3.75}
width={76}
x={46}
y={67}
/>
<RNSVGPath
d="M18 29.2963L18 43L59.5 43"
fill={
{
"payload": 4278190080,
"type": 0,
}
}
propList={
[
"stroke",
"strokeOpacity",
"strokeLinecap",
]
}
stroke={
{
"payload": 4294967295,
"type": 0,
}
}
strokeLinecap={1}
strokeOpacity={0.24}
/>
<RNSVGEllipse
cx={2}
cy={2}
fill={
{
"payload": 4294967295,
"type": 0,
}
}
fillOpacity={0.32}
matrix={
[
1,
8.74228e-8,
8.74228e-8,
-1,
16,
29,
]
}
propList={
[
"fill",
"fillOpacity",
]
}
rx={2}
ry={2}
/>
<RNSVGPath
d="M19.5 27C19.5 26.1716 18.8284 25.5 18 25.5C17.1716 25.5 16.5 26.1716 16.5 27C16.5 27.8284 17.1716 28.5 18 28.5C18.8284 28.5 19.5 27.8284 19.5 27Z"
fill={
{
"payload": 4278190080,
"type": 0,
}
}
propList={
[
"stroke",
"strokeOpacity",
]
}
stroke={
{
"payload": 4294967295,
"type": 0,
}
}
strokeOpacity={0.24}
/>
<RNSVGPath
d="M100.75 80.2319L100.75 55.9336L76.9016 55.9336"
fill={
{
"payload": 4278190080,
"type": 0,
}
}
propList={
[
"stroke",
"strokeOpacity",
"strokeLinecap",
]
}
stroke={
{
"payload": 4294967295,
"type": 0,
}
}
strokeLinecap={1}
strokeOpacity={0.24}
/>
<RNSVGCircle
cx={100.75}
cy={82.4818}
fill={
{
"payload": 4294967295,
"type": 0,
}
}
fillOpacity={0.32}
matrix={
[
-1,
1.2246467991473532e-16,
-1.2246467991473532e-16,
-1,
201.5,
164.96359999999999,
]
}
propList={
[
"fill",
"fillOpacity",
]
}
r={2.24985}
/>
<RNSVGCircle
cx={100.75}
cy={82.4818}
fill={
{
"payload": 4278190080,
"type": 0,
}
}
matrix={
[
-1,
1.2246467991473532e-16,
-1.2246467991473532e-16,
-1,
201.5,
164.96359999999999,
]
}
propList={
[
"stroke",
"strokeOpacity",
]
}
r={1.74985}
stroke={
{
"payload": 4294967295,
"type": 0,
}
}
strokeOpacity={0.24}
/>
<RNSVGPath
d="M66.542 16.24L69.8888 22.72M91.922 65.38L85.5073 52.96L83.8339 49.72L81.6027 45.4L78.5348 39.46M76.3036 35.14L72.12 27.04"
fill={
{
"payload": 4278190080,
"type": 0,
}
}
propList={
[
"stroke",
"strokeWidth",
"strokeLinecap",
]
}
stroke={
{
"payload": 4294967295,
"type": 0,
}
}
strokeLinecap={1}
strokeWidth={1.08}
/>
<RNSVGPath
d="M60.2322 16.5361L88.2681 72.1242C89.1067 73.7869 87.8982 75.75 86.0359 75.75H29.9641C28.1018 75.75 26.8933 73.7869 27.7319 72.1242L55.7678 16.5361C56.6919 14.7039 59.3081 14.7039 60.2322 16.5361Z"
fill={
{
"payload": 4280169052,
"type": 0,
}
}
propList={
[
"fill",
"stroke",
]
}
stroke={
{
"payload": 4294290176,
"type": 0,
}
}
/>
<RNSVGPath
d="M54.5164 37.2833L56.7971 51.9301C56.8191 52.2208 56.9554 52.4927 57.1786 52.6912C57.4018 52.8897 57.6954 53 58.0002 53C58.3051 53 58.5986 52.8897 58.8219 52.6912C59.0451 52.4927 59.1814 52.2208 59.2034 51.9301L61.484 37.2833C61.8987 31.5722 54.0955 31.5722 54.5164 37.2833Z"
fill={
{
"payload": 4294967295,
"type": 0,
}
}
propList={
[
"fill",
]
}
/>
<RNSVGPath
d="M58.0072 59C58.798 59.0014 59.5706 59.2372 60.2275 59.6776C60.8843 60.118 61.396 60.7432 61.6976 61.4742C61.9993 62.2053 62.0774 63.0093 61.9222 63.7848C61.7671 64.5602 61.3856 65.2723 60.8259 65.831C60.2662 66.3897 59.5535 66.7699 58.7777 66.9237C58.002 67.0774 57.1981 66.9978 56.4676 66.6948C55.7371 66.3919 55.1128 65.8792 54.6736 65.2215C54.2344 64.5639 54 63.7908 54 63C54 62.4741 54.1036 61.9534 54.3051 61.4676C54.5066 60.9818 54.8019 60.5406 55.1741 60.169C55.5463 59.7975 55.9881 59.503 56.4743 59.3024C56.9604 59.1018 57.4813 58.9991 58.0072 59Z"
fill={
{
"payload": 4294967295,
"type": 0,
}
}
propList={
[
"fill",
]
}
/>
<RNSVGPath
d="M65.462 80.5H87.062"
fill={
{
"payload": 4278190080,
"type": 0,
}
}
propList={
[
"stroke",
"strokeWidth",
"strokeLinecap",
]
}
stroke={
{
"payload": 4294967295,
"type": 0,
}
}
strokeLinecap={1}
strokeWidth={1.08}
/>
</RNSVGGroup>
</RNSVGSvgView>
<Text
style={
[
{
"fontFamily": "Metropolis-SemiBold",
"fontSize": 20,
"fontWeight": "600",
"lineHeight": 28,
},
{
"color": "#ffffff",
"marginTop": 20,
"textAlign": "center",
},
]
}
>
Error title
</Text>
<Text
style={
[
{
"fontFamily": "OpenSans",
"fontSize": 16,
"fontWeight": "400",
"lineHeight": 24,
},
{
"color": "#ffffff",
"marginTop": 4,
"textAlign": "center",
},
]
}
>
Error description
</Text>
<View
style={
{
"marginTop": 24,
}
}
>
<View
style={
[
{
"overflow": "hidden",
},
{
"borderRadius": 2,
},
undefined,
false,
]
}
testID="RNE_BUTTON_WRAPPER"
>
<View
accessibilityRole="button"
accessibilityState={
{
"busy": false,
"checked": undefined,
"disabled": false,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
[
undefined,
{
"opacity": 1,
},
]
}
>
<View
style={
{
"alignItems": "center",
"backgroundColor": "#1c58d9",
"borderColor": "#2089dc",
"borderRadius": 4,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
"paddingHorizontal": 24,
"paddingVertical": 12,
}
}
>
<View
style={
{
"alignItems": "center",
"flexDirection": "row",
"gap": 7,
}
}
testID="undefined-text-container"
>
<Text
numberOfLines={1}
style={
{
"color": "#ffffff",
"fontFamily": "OpenSans-SemiBold",
"fontSize": 16,
"fontWeight": "600",
"lineHeight": 24,
}
}
>
Retry
</Text>
</View>
</View>
</View>
</View>
</View>
</View>
`;