Skip to content

Commit b4df9af

Browse files
committed
Merge branch 'main' into issue-65402
2 parents d330b43 + 8c9a198 commit b4df9af

21 files changed

Lines changed: 53 additions & 124 deletions

Mobile-Expensify

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ android {
114114
minSdkVersion rootProject.ext.minSdkVersion
115115
targetSdkVersion rootProject.ext.targetSdkVersion
116116
multiDexEnabled rootProject.ext.multiDexEnabled
117-
versionCode 1009018901
118-
versionName "9.1.89-1"
117+
versionCode 1009018903
118+
versionName "9.1.89-3"
119119
// Supported language variants must be declared here to avoid from being removed during the compilation.
120120
// This also helps us to not include unnecessary language variants in the APK.
121121
resConfigs "en", "es"

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</dict>
4545
</array>
4646
<key>CFBundleVersion</key>
47-
<string>9.1.89.1</string>
47+
<string>9.1.89.3</string>
4848
<key>FullStory</key>
4949
<dict>
5050
<key>OrgId</key>

ios/NotificationServiceExtension/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.1.89</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.89.1</string>
16+
<string>9.1.89.3</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

ios/ShareViewController/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.1.89</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.89.1</string>
16+
<string>9.1.89.3</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionAttributes</key>

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "9.1.89-1",
3+
"version": "9.1.89-3",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
@@ -179,7 +179,7 @@
179179
"react-native-modal": "^13.0.0",
180180
"react-native-nitro-modules": "0.26.2",
181181
"react-native-nitro-sqlite": "9.1.10",
182-
"react-native-onyx": "2.0.130",
182+
"react-native-onyx": "2.0.127",
183183
"react-native-pager-view": "6.5.3",
184184
"react-native-pdf": "6.7.3",
185185
"react-native-performance": "^5.1.4",

src/components/OptionListContextProvider.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {createContext, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
2-
import type {OnyxCollection} from 'react-native-onyx';
2+
import type {OnyxCollection, OnyxEntry} from 'react-native-onyx';
33
import useOnyx from '@hooks/useOnyx';
44
import usePrevious from '@hooks/usePrevious';
55
import {createOptionFromReport, createOptionList, processReport, shallowOptionsListCompare} from '@libs/OptionsListUtils';
@@ -87,13 +87,11 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) {
8787
}, [prevReportAttributesLocale, loadOptions, reportAttributes?.locale]);
8888

8989
const changedReportsEntries = useMemo(() => {
90-
const result: OnyxCollection<Report> = {};
90+
const result: OnyxCollection<OnyxEntry<Report>> = {};
9191

9292
Object.keys(changedReports ?? {}).forEach((key) => {
9393
const report = reports?.[key];
94-
if (report) {
95-
result[key] = report;
96-
}
94+
result[key] = report;
9795
});
9896
return result;
9997
}, [changedReports, reports]);

src/components/SelectionList/BaseSelectionList.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -637,15 +637,16 @@ function BaseSelectionList<TItem extends ListItem>(
637637
const isItemFocused = (!isDisabled || selected) && focusedIndex === normalizedIndex;
638638
const isItemHighlighted = !!itemsToHighlight?.has(item.keyForList ?? '');
639639

640+
const newItem = item;
641+
if (!item.isSelected) {
642+
newItem.isSelected = selected;
643+
}
644+
640645
return (
641646
<View onLayout={(event: LayoutChangeEvent) => onItemLayout(event, item?.keyForList)}>
642647
<BaseSelectionListItemRenderer
643648
ListItem={ListItem}
644-
item={{
645-
shouldAnimateInHighlight: isItemHighlighted,
646-
isSelected: selected,
647-
...item,
648-
}}
649+
item={newItem}
649650
shouldUseDefaultRightHandSideCheckmark={shouldUseDefaultRightHandSideCheckmark}
650651
index={index}
651652
isFocused={isItemFocused}
@@ -671,6 +672,7 @@ function BaseSelectionList<TItem extends ListItem>(
671672
singleExecution={singleExecution}
672673
titleContainerStyles={listItemTitleContainerStyles}
673674
canShowProductTrainingTooltip={canShowProductTrainingTooltipMemo}
675+
shouldAnimateInHighlight={isItemHighlighted}
674676
/>
675677
</View>
676678
);

src/components/SelectionList/BaseSelectionListItemRenderer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function BaseSelectionListItemRenderer<TItem extends ListItem>({
5050
singleExecution,
5151
titleContainerStyles,
5252
shouldUseDefaultRightHandSideCheckmark,
53+
shouldAnimateInHighlight,
5354
canShowProductTrainingTooltip = true,
5455
userWalletTierName,
5556
isUserValidated,
@@ -106,6 +107,7 @@ function BaseSelectionListItemRenderer<TItem extends ListItem>({
106107
titleContainerStyles={titleContainerStyles}
107108
shouldUseDefaultRightHandSideCheckmark={shouldUseDefaultRightHandSideCheckmark}
108109
canShowProductTrainingTooltip={canShowProductTrainingTooltip}
110+
shouldAnimateInHighlight={shouldAnimateInHighlight}
109111
userWalletTierName={userWalletTierName}
110112
isUserValidated={isUserValidated}
111113
personalDetails={personalDetails}

0 commit comments

Comments
 (0)