Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
dc45902
chore: bumpt NitroModules and NitroSQLite
chrispader Mar 8, 2026
614fab7
chore: bump nitrogen generated specs in ExpensifyNitroUtils
chrispader Mar 8, 2026
f78b339
chore: update `react-native-onyx` to latest commit in Onyx PR
chrispader Mar 8, 2026
8713600
fix: remove `override` keyword from `HybridAppStartTimeModule`
chrispader Mar 8, 2026
434118b
Update Podfile.lock
chrispader Mar 8, 2026
69a6693
Merge branch 'main' into @chrispader/bump-onyx-to-3.0.46
chrispader Mar 11, 2026
3d7d970
Merge branch 'main' into pr/84517
chrispader Mar 18, 2026
7e81ba6
Merge branch 'main' into @chrispader/bump-onyx-to-3.0.46
chrispader Mar 20, 2026
f335703
chore: update onyx commit
chrispader Mar 20, 2026
8a39e2e
Merge branch 'main' into @chrispader/bump-onyx-to-3.0.46
chrispader Mar 23, 2026
5d5edff
Update package-lock.json
chrispader Mar 23, 2026
0cbd98f
Merge branch 'main' into pr/84517
chrispader Apr 10, 2026
c15c6f1
Merge branch 'main' into @chrispader/bump-onyx-to-3.0.46
chrispader Apr 14, 2026
7613a9f
Remove cache eviction references
fabioh8010 Mar 31, 2026
0fe0e14
chore: bump `react-native-onyx` to version 3.0.63
chrispader Apr 14, 2026
b703a92
chore: update `react-native-onyx` patch based on new version
chrispader Apr 14, 2026
da58625
chore: update `details.md` for `react-native-onyx`
chrispader Apr 14, 2026
23b90d7
Merge branch 'main' into @chrispader/bump-onyx-to-3.0.46
chrispader Apr 16, 2026
0e6a97f
Merge branch 'main' into @chrispader/bump-onyx-to-3.0.46
chrispader Apr 16, 2026
a55cb90
Merge branch 'main' into pr/51366
chrispader Apr 21, 2026
0ae80d2
fix: remove `canEvict` usage
chrispader Apr 21, 2026
810301e
Use newest Onyx changes
fabioh8010 Apr 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions contributingGuides/STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,7 @@ When you change the function id argument type to allow `undefined`, check if it

```diff
function MoneyRequestView({report, shouldShowAnimatedBackground, readonly = false, updatedTransaction, isFromReviewDuplicates = false}: MoneyRequestViewProps) {
const [parentReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${parentReportID}`, {
canEvict: false,
});
const [parentReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${parentReportID}`);
- const parentReportAction = parentReportActions?.[report?.parentReportActionID ?? '-1'];
+ const parentReportAction = parentReportActions?.[report?.parentReportActionID];
```
Expand Down
12 changes: 1 addition & 11 deletions contributingGuides/philosophies/ONYX-DATA-MANAGEMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,7 @@ Different platforms come with varying storage capacities and Onyx has a way to g

**To flag a key as safe for removal:**
- Add the key to the `evictableKeys` option in `Onyx.init(options)`
- Implement `canEvict` in the Onyx config for each component subscribing to a key
- The key will only be deleted when all subscribers return `true` for `canEvict`

Example:
```js
Onyx.init({
evictableKeys: [ONYXKEYS.COLLECTION.REPORT_ACTIONS],
});

const [reportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`, {canEvict: !isActiveReport});
```
- A least recently accessed key will only be deleted when an Onyx operation retries after failing.

## Onyx Derived Values

Expand Down
8 changes: 4 additions & 4 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ PODS:
- nanopb/encode (= 3.30910.0)
- nanopb/decode (3.30910.0)
- nanopb/encode (3.30910.0)
- NitroModules (0.29.4):
- NitroModules (0.35.0):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -3807,7 +3807,7 @@ PODS:
- SocketRocket
- Turf
- Yoga
- RNNitroSQLite (9.2.0):
- RNNitroSQLite (9.6.0):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -4832,7 +4832,7 @@ SPEC CHECKSUMS:
MapboxMaps: f87023cf0d72b180b40ea0b6fb4b2d7db6b73b71
MapboxMobileEvents: d044b9edbe0ec7df60f6c2c9634fe9a7f449266b
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
NitroModules: 8bffd214aa360baba0f2c5718fe0acff5ef94763
NitroModules: f8c2cc3025e4550aee15ff77c525622bf98e774a
NWWebSocket: b4741420f1976e1dff4da3edad00c401e4f1d769
Onfido: 65454f91d10758193c857fd149417f6efbea84c5
onfido-react-native-sdk: bb8cfd9198e2e97978461d969497d18b37e45ca7
Expand Down Expand Up @@ -4944,7 +4944,7 @@ SPEC CHECKSUMS:
RNLiveMarkdown: 589e31da57c2cb6d98b37ac68ae8b0b256247172
RNLocalize: 05e367a873223683f0e268d0af9a8a8e6aed3b26
rnmapbox-maps: 392ac61c42a9ff01a51d4c2f6775d9131b5951fb
RNNitroSQLite: fb251387cfbee73b100cd484a3c886fda681b3b5
RNNitroSQLite: a9b5965d511ed6e99ce903380e64934d043a0d2c
RNPermissions: 518f0a0c439acc74e2b9937e0e7d29e5031ae949
RNReactNativeHapticFeedback: 5f1542065f0b24c9252bd8cf3e83bc9c548182e4
RNReanimated: fbcb7fd8da5b0b088401542c58fb5d266388f1cf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package com.margelo.nitro.utils

import android.content.Context
import com.margelo.nitro.NitroModules
import androidx.core.content.edit

class HybridAppStartTimeModule : HybridAppStartTimeModuleSpec() {
override val memorySize: Long = 16L

override fun recordAppStartTime() {
fun recordAppStartTime() {
val context = NitroModules.applicationContext ?: return
val sharedPreferences = context.getSharedPreferences("AppStartTime", Context.MODE_PRIVATE)
sharedPreferences.edit().putLong("AppStartTime", System.currentTimeMillis()).apply()
sharedPreferences.edit { putLong("AppStartTime", System.currentTimeMillis()) }
}

override val appStartTime: Double
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading