Skip to content

Commit 49c5a7e

Browse files
Merge pull request #56166 from callstack-internal/feature/bump-onyx-to-2.0.92
Bump Onyx to 2.0.92
2 parents 2cc39b1 + 91399f7 commit 49c5a7e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"react-native-launch-arguments": "^4.0.2",
167167
"react-native-localize": "^2.2.6",
168168
"react-native-modal": "^13.0.0",
169-
"react-native-onyx": "2.0.89",
169+
"react-native-onyx": "2.0.92",
170170
"react-native-pager-view": "6.5.1",
171171
"react-native-pdf": "6.7.3",
172172
"react-native-performance": "^5.1.0",

src/CONST.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import type PlaidBankAccount from './types/onyx/PlaidBankAccount';
1616
const EMPTY_ARRAY = Object.freeze([]);
1717
const EMPTY_OBJECT = Object.freeze({});
1818

19+
const DEFAULT_NUMBER_ID = 0;
20+
1921
const CLOUDFRONT_DOMAIN = 'cloudfront.net';
2022
const CLOUDFRONT_URL = `https://d2k5nsl2zxldvw.${CLOUDFRONT_DOMAIN}`;
2123
const ACTIVE_EXPENSIFY_URL = addTrailingForwardSlash(Config?.NEW_EXPENSIFY_URL ?? 'https://new.expensify.com');
@@ -943,7 +945,7 @@ const CONST = {
943945
CLOUDFRONT_URL,
944946
EMPTY_ARRAY,
945947
EMPTY_OBJECT,
946-
DEFAULT_NUMBER_ID: 0,
948+
DEFAULT_NUMBER_ID,
947949
USE_EXPENSIFY_URL,
948950
EXPENSIFY_URL,
949951
GOOGLE_MEET_URL_ANDROID: 'https://meet.google.com',
@@ -6567,6 +6569,7 @@ const CONST = {
65676569
ERROR_PERMISSION_DENIED: 'permissionDenied',
65686570
},
65696571
},
6572+
SKIPPABLE_COLLECTION_MEMBER_IDS: [String(DEFAULT_NUMBER_ID), '-1', 'undefined', 'null', 'NaN'] as string[],
65706573
} as const;
65716574

65726575
type Country = keyof typeof CONST.ALL_COUNTRIES;

src/setup/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {I18nManager} from 'react-native';
22
import Onyx from 'react-native-onyx';
33
import intlPolyfill from '@libs/IntlPolyfill';
4-
import * as Device from '@userActions/Device';
4+
import {setDeviceID} from '@userActions/Device';
55
import CONST from '@src/CONST';
66
import ONYXKEYS from '@src/ONYXKEYS';
77
import addUtilsToWindow from './addUtilsToWindow';
@@ -42,9 +42,10 @@ export default function () {
4242
// Always open the home route on app startup for native platforms by clearing the lastVisitedPath
4343
[ONYXKEYS.LAST_VISITED_PATH]: initializeLastVisitedPath(),
4444
},
45+
skippableCollectionMemberIDs: CONST.SKIPPABLE_COLLECTION_MEMBER_IDS,
4546
});
4647

47-
Device.setDeviceID();
48+
setDeviceID();
4849

4950
// Force app layout to work left to right because our design does not currently support devices using this mode
5051
I18nManager.allowRTL(false);

0 commit comments

Comments
 (0)