Repository navigation
feat: enable React Native New Architecture (Fabric + TurboModules) - #545
Merged
Merged
Conversation
Enable New Architecture on both Android and iOS for RN 0.76.9. This prepares the app for Breez SDK Spark integration which requires TurboModules. Changes: - Set newArchEnabled=true in android/gradle.properties - Added com.facebook.react plugin resolution in android/build.gradle - Set ENV['RCT_NEW_ARCH_ENABLED'] = '1' in ios/Podfile - Updated ios/Podfile.lock for new arch pod configuration - Added .sisyphus/ to .gitignore All ~70+ native dependencies work via RN 0.76 interop layer. No dependency upgrades required. All existing patches still apply. Verified: Android assembleDebug, iOS xcodebuild (both schemes), Metro bundler.
Native RCTModalHostView is broken on Android with Fabric (RN 0.76.9). This implements a portal-based workaround: - ModalPortalProvider at app root renders modal content via global bridge - Patched react-native-modal to register content with portal on Android - Ref callback triggers open() after portal mounts, close animation completes before unregistration to prevent stuck modals - ModalPortal drop-in replacement for bare RN Modal usages - CountryPicker uses built-in disableNativeModal on Android - iOS path completely unchanged
islandbitcoin
force-pushed
the
feat/new-architecture
branch
from
February 1, 2026 01:13
304080e to
661b40a
Compare
Nodirbek75
approved these changes
Feb 4, 2026
Contributor
Author
|
@Nodirbek75 it seems like this PR still needs to be rebased to main before merging |
This was referenced Jul 23, 2026
islandbitcoin
pushed a commit
that referenced
this pull request
Jul 23, 2026
…rch layout Sweep companion to the CashWalletCutoverModal fix. Under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 documented as broken on Android/Fabric: it mis-measures the flex:1 content host, so any bottom-anchored sheet (justifyContent: flex-end, or content bottom-pinned via a flex spacer) is positioned off-screen while its full-screen backdrop keeps capturing touches — unreachable controls, frozen app. #545's portal workaround was removed in the same series, leaving these unprotected. Adds coverScreen={false} (react-native-modal's inline render path) to the six confirmed bottom-anchored modals: - modal-tooltip (reused across many screens; was coverScreen=true) - contact-modal, reports-modal (flex-end sheets) - home-screen/AccountCreateModal (bottom-pinned; shows on "need wallet") - modal-nfc (bottom-pinned; auto-shows on Android during NFC scan) - earns-screen/earns-quiz (bottom-pinned quiz card) Reviewed and intentionally left unchanged: centered modals (default justifyContent) tolerate the mis-measure; merchant-suggest-modal is top-anchored (flex-start) so it stays on-screen. Core react-native <Modal> usages hit the same broken host but cannot take coverScreen and need a separate remedy — tracked separately, not in this PR. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
islandbitcoin
pushed a commit
that referenced
this pull request
Jul 23, 2026
CashWalletCutoverModal auto-shows once after login for accounts created before the cash-wallet cutover. It is a bottom-anchored react-native-modal (style justifyContent: "flex-end", margin: 0). On Android under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 already documented as broken on Fabric: it mis-measures the flex:1 content container, so the sheet is positioned below the visible viewport while its full-screen backdrop keeps capturing touches. The dismiss button is unreachable and the app appears frozen; only a restart clears it. Fix: pass coverScreen={false} so react-native-modal takes its inline render path instead of the broken native host, measuring layout correctly and keeping the sheet on-screen and dismissable. The portal-based workaround #545 added for this exact Fabric bug was removed in the same series, so other bottom-anchored react-native-modal usages are likely affected too; those are tracked separately as a modal-audit sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
islandbitcoin
pushed a commit
that referenced
this pull request
Jul 23, 2026
CashWalletCutoverModal auto-shows once after login for accounts created before the cash-wallet cutover. It is a bottom-anchored react-native-modal (style justifyContent: "flex-end", margin: 0). On Android under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 already documented as broken on Fabric: it mis-measures the flex:1 content container, so the sheet is positioned below the visible viewport while its full-screen backdrop keeps capturing touches. The dismiss button is unreachable and the app appears frozen; only a restart clears it. Fix: pass coverScreen={false} so react-native-modal takes its inline render path instead of the broken native host, measuring layout correctly and keeping the sheet on-screen and dismissable. The portal-based workaround #545 added for this exact Fabric bug was removed in the same series, so other bottom-anchored react-native-modal usages are likely affected too; those are tracked separately as a modal-audit sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
islandbitcoin
pushed a commit
that referenced
this pull request
Jul 23, 2026
…rch layout Sweep companion to the CashWalletCutoverModal fix. Under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 documented as broken on Android/Fabric: it mis-measures the flex:1 content host, so any bottom-anchored sheet (justifyContent: flex-end, or content bottom-pinned via a flex spacer) is positioned off-screen while its full-screen backdrop keeps capturing touches — unreachable controls, frozen app. #545's portal workaround was removed in the same series, leaving these unprotected. Adds coverScreen={false} (react-native-modal's inline render path) to the six confirmed bottom-anchored modals: - modal-tooltip (reused across many screens; was coverScreen=true) - contact-modal, reports-modal (flex-end sheets) - home-screen/AccountCreateModal (bottom-pinned; shows on "need wallet") - modal-nfc (bottom-pinned; auto-shows on Android during NFC scan) - earns-screen/earns-quiz (bottom-pinned quiz card) Reviewed and intentionally left unchanged: centered modals (default justifyContent) tolerate the mis-measure; merchant-suggest-modal is top-anchored (flex-start) so it stays on-screen. Core react-native <Modal> usages hit the same broken host but cannot take coverScreen and need a separate remedy — tracked separately, not in this PR. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
islandbitcoin
pushed a commit
that referenced
this pull request
Jul 23, 2026
…rch layout Sweep companion to the CashWalletCutoverModal fix. Under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 documented as broken on Android/Fabric: it mis-measures the flex:1 content host, so any bottom-anchored sheet (justifyContent: flex-end, or content bottom-pinned via a flex spacer) is positioned off-screen while its full-screen backdrop keeps capturing touches — unreachable controls, frozen app. #545's portal workaround was removed in the same series, leaving these unprotected. Adds coverScreen={false} (react-native-modal's inline render path) to the six confirmed bottom-anchored modals: - modal-tooltip (reused across many screens; was coverScreen=true) - contact-modal, reports-modal (flex-end sheets) - home-screen/AccountCreateModal (bottom-pinned; shows on "need wallet") - modal-nfc (bottom-pinned; auto-shows on Android during NFC scan) - earns-screen/earns-quiz (bottom-pinned quiz card) Reviewed and intentionally left unchanged: centered modals (default justifyContent) tolerate the mis-measure; merchant-suggest-modal is top-anchored (flex-start) so it stays on-screen. Core react-native <Modal> usages hit the same broken host but cannot take coverScreen and need a separate remedy — tracked separately, not in this PR. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
islandbitcoin
added a commit
that referenced
this pull request
Jul 23, 2026
#673) CashWalletCutoverModal auto-shows once after login for accounts created before the cash-wallet cutover. It is a bottom-anchored react-native-modal (style justifyContent: "flex-end", margin: 0). On Android under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 already documented as broken on Fabric: it mis-measures the flex:1 content container, so the sheet is positioned below the visible viewport while its full-screen backdrop keeps capturing touches. The dismiss button is unreachable and the app appears frozen; only a restart clears it. Fix: pass coverScreen={false} so react-native-modal takes its inline render path instead of the broken native host, measuring layout correctly and keeping the sheet on-screen and dismissable. The portal-based workaround #545 added for this exact Fabric bug was removed in the same series, so other bottom-anchored react-native-modal usages are likely affected too; those are tracked separately as a modal-audit sweep. Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg Co-authored-by: Dread <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
islandbitcoin
added a commit
that referenced
this pull request
Jul 23, 2026
…rch layout (#674) Sweep companion to the CashWalletCutoverModal fix. Under the New Architecture, react-native-modal renders through RCTModalHostView, which #545 documented as broken on Android/Fabric: it mis-measures the flex:1 content host, so any bottom-anchored sheet (justifyContent: flex-end, or content bottom-pinned via a flex spacer) is positioned off-screen while its full-screen backdrop keeps capturing touches — unreachable controls, frozen app. #545's portal workaround was removed in the same series, leaving these unprotected. Adds coverScreen={false} (react-native-modal's inline render path) to the six confirmed bottom-anchored modals: - modal-tooltip (reused across many screens; was coverScreen=true) - contact-modal, reports-modal (flex-end sheets) - home-screen/AccountCreateModal (bottom-pinned; shows on "need wallet") - modal-nfc (bottom-pinned; auto-shows on Android during NFC scan) - earns-screen/earns-quiz (bottom-pinned quiz card) Reviewed and intentionally left unchanged: centered modals (default justifyContent) tolerate the mis-measure; merchant-suggest-modal is top-anchored (flex-start) so it stays on-screen. Core react-native <Modal> usages hit the same broken host but cannot take coverScreen and need a separate remedy — tracked separately, not in this PR. Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg Co-authored-by: Dread <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
bobodread876
pushed a commit
that referenced
this pull request
Aug 20, 2026
- openInStore now tries `market://details?id=<bundleId>` on Android before
the https Play Store listing. Any browser resolves the https URL, so the
documented failure trigger ("an Android device with no Play Store") could
never fire: a hard-blocked user on a de-Googled or Huawei device landed on
a web page they cannot install from, with no hint that Contact Support was
the way out. The store-app scheme lands them where they can install, and
makes the rejection path reachable when nothing on the device takes it.
- AppUpdateModal's `contactSupport` is now required. It drives one of only
two escapes from a modal with no dismiss, no backdrop press and a swallowed
back button; optional meant a caller could ship a dead button with no type
error, and both stories did — including the store-link-failed story, which
rendered "Tap Contact Support below for help" over a no-op.
- The banner's failure toast passes `currentTranslation: LL` (utils/toast
falls back to English without it, and logs isTranslated: false every time)
and uses a new `AppUpdate.couldNotOpenStoreBanner` string. The gate's copy
points at a Contact Support button that does not exist on the home screen.
- Dropped three dead `jest.mock("@app/components/contact-modal", …)` calls
and the comment claiming the specs assert on them; app-update.tsx no longer
imports that module at all.
- The app.tsx wiring specs match formatting-tolerant regexes instead of exact
source text, so adding a prop or letting prettier wrap a tag no longer fails
a spec while the mount is intact.
- New app-update-inline-modal.spec.tsx runs the real react-native-modal (every
other spec stubs it wholesale) and pins that coverScreen={false} keeps the
gate off the native modal host — broken under Fabric on Android, see #545 —
with content rendered and both escapes tappable. Verified it fails when the
prop is dropped. Fabric layout still needs a device check before release.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01NEoz7nBtdtsHyuYG5wNPQV
islandbitcoin
pushed a commit
that referenced
this pull request
Aug 20, 2026
* feat(app-update): mount the version-gate UI
The AppUpdate component — a soft 'update available' banner and a
blocking 'update mandatory' modal, both driven by the public
mobileVersions query — has existed since the galoy fork but was never
mounted anywhere, and its banner text was commented out. No update
prompt has ever shipped, so there was no way to move users off an old
build.
- home-screen: render the soft banner
- app.tsx: mount the blocking gate via AppUpdateBoundary, which shares
one version check with the banner and pins the modal as the last
sibling (it renders with coverScreen={false} for the Fabric modal-host
bug, so paint order follows sibling order). Mounted app-wide rather
than on Home so deep-link cold starts cannot bypass it.
- app-update: restore the banner text; check 'required' before
'available' — required implies available, so the blocking modal was
unreachable behind the banner; re-check on foreground so a raised
minBuildNumber reaches apps resident in memory for days; surface store
and mail-composer failures instead of leaving the tap a silent no-op.
- The gate's Contact Support button composes mail directly. The shared
contact-modal helper points at wa.flashapp.me, which as of 2026-08-19
returns 200 with zero redirects and no wa.me anywhere — a static
'temporarily unavailable' page that discards ?text=. Kept local so no
other caller's behavior changes.
543 tests pass; tsc clean.
DEPLOY ORDER: prod mobileVersions currently serves the schema defaults
(min=last=362), which would hard-block every real build. lnflash/
deployments#166 must be applied before a release containing this ships.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016MsAGwtS4sNodzWu2VMTKR
* fix(app-update): address review findings on the version gate
- openInStore now tries `market://details?id=<bundleId>` on Android before
the https Play Store listing. Any browser resolves the https URL, so the
documented failure trigger ("an Android device with no Play Store") could
never fire: a hard-blocked user on a de-Googled or Huawei device landed on
a web page they cannot install from, with no hint that Contact Support was
the way out. The store-app scheme lands them where they can install, and
makes the rejection path reachable when nothing on the device takes it.
- AppUpdateModal's `contactSupport` is now required. It drives one of only
two escapes from a modal with no dismiss, no backdrop press and a swallowed
back button; optional meant a caller could ship a dead button with no type
error, and both stories did — including the store-link-failed story, which
rendered "Tap Contact Support below for help" over a no-op.
- The banner's failure toast passes `currentTranslation: LL` (utils/toast
falls back to English without it, and logs isTranslated: false every time)
and uses a new `AppUpdate.couldNotOpenStoreBanner` string. The gate's copy
points at a Contact Support button that does not exist on the home screen.
- Dropped three dead `jest.mock("@app/components/contact-modal", …)` calls
and the comment claiming the specs assert on them; app-update.tsx no longer
imports that module at all.
- The app.tsx wiring specs match formatting-tolerant regexes instead of exact
source text, so adding a prop or letting prettier wrap a tag no longer fails
a spec while the mount is intact.
- New app-update-inline-modal.spec.tsx runs the real react-native-modal (every
other spec stubs it wholesale) and pins that coverScreen={false} keeps the
gate off the native modal host — broken under Fabric on Android, see #545 —
with content rendered and both escapes tappable. Verified it fails when the
prop is dropped. Fabric layout still needs a device check before release.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01NEoz7nBtdtsHyuYG5wNPQV
* test(app-update): pin the Android support case to its own openURL mock
The "tells support the blocked device is on Android" case installed no
spy of its own — it read `(Linking.openURL as jest.Mock).mock.calls`,
inheriting whatever the preceding test left behind. Two tests inserted
above it flipped that inherited mock from `mockResolvedValue(undefined)`
to `mockRejectedValue(...)`, so the case was silently exercising the
mail-composer *failure* path while its name claimed the success path,
and it would break outright if the file were reordered.
Give it its own `jest.spyOn(Linking, "openURL").mockResolvedValue(...)`,
wrap the press in `act` like every sibling case, assert against that
spy's calls, and add an assertion that the last-resort address stays
hidden — which is what pins the case to the success path regardless of
what runs before it.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01NEoz7nBtdtsHyuYG5wNPQV
---------
Co-authored-by: Dread <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
islandbitcoin
added a commit
that referenced
this pull request
Sep 23, 2026
…ount picker (#729) * feat(bank-accounts): self-serve add/edit/delete/default + cashout account picker Settings → Bank accounts now manages withdrawal accounts end to end for both rails, instantly: - ERPNext (Jamaican) accounts: add (bankAccountAdd), edit (bankAccountUpdate, replaces the review-gated bankAccountUpdateRequest), set default, delete. - Bridge external (US) accounts: set default and delete (no edit API). - The server owns the default on both rails; the AsyncStorage default store is removed. - The Settings row and the "Add Jamaican bank account" CTA no longer depend on the Bridge flag; Bridge sections stay gated inside the hub. - Cashout: one selection function (selected → server default → first JMD → first) shared by the details screen, the JMD preview and the "Withdraw to" card, which is now a picker whose choice flows into requestCashout / bridgeRequestWithdrawal and the confirmation screen. - public-schema.graphql refreshed from the backend SDL; codegen and i18n regenerated, translation files backfilled with the English source. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(bank-accounts): address review findings on self-serve bank accounts - cashout: split the account sheet out of the "Withdraw to" card into CashoutAccountPicker, rendered at the CashoutDetails screen root with coverScreen={false} (Fabric/Android bottom-sheet freeze, #545). Visibility is lifted to the screen; "Manage bank accounts" navigates from onModalHide. - cashout: the account list scrolls (max 60% of the window) with the manage link outside the scroller. - hub: action sheet is at most Edit / Remove / Cancel and cancelable, so Android's three-button Alert can never drop Cancel. Set as default is the radio tap. - hub: group withdrawal accounts by rail (one server default each) instead of by currency, and show the currency on the row. - hub: accounts without the bankPayout capability (and no local account on file) are offered the upgrade before the add form, not after submitting it. - edit: only judge "bank not in the list" against a supported-banks list that loaded; submit waits while it loads and a failed load shows a retryable error. - i18n: usBankAccounts, localBankAccounts, banksLoadError, banksLoadRetry. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Dread <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
islandbitcoin
added a commit
that referenced
this pull request
Sep 24, 2026
) * chore(ui): move core SafeAreaView imports to react-native-safe-area-context The core SafeAreaView is iOS-only (a plain View on Android) and deprecated in RN 0.77. The safe-area-context one pads by the system-bar overlap on both platforms and resolves it natively per view, so it is 0 wherever the window is not edge-to-edge and 0 below a navigation header. iOS layout is unchanged. FeaturedProfileView had hand-added StatusBar.currentHeight to its absolute header on Android to compensate for the core component doing nothing there; that would now double, so it is dropped. iris-browser loses dead navigation code that eslint flagged; FeaturedProfileView is run through the repo prettier (it had never been). ENG-605 PR4. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): make Screen edge-to-edge safe on Android Screen wraps every screen. Its wrapper becomes react-native-safe-area- context's SafeAreaView on both platforms: position-aware (0 below a header or above a tab bar), 0 on a non-edge-to-edge window, and the real status/navigation-bar inset once the window is edge-to-edge (Android 15+ today, every Android 16 device at targetSdk 36). KeyboardAvoidingView stays behavior="padding" on iOS and undefined on Android, where it is a plain View and cannot stack on the new bottom inset; the choice and the Android keyboard story are documented in the component. NIP17Chat's manual StatusBar.currentHeight top padding goes (it would double with the wrapper). Dead statusBar code removed. Specs render Screen under a mocked SafeAreaProvider and assert the wrapper pads by initialMetrics, is a no-op at zero insets, keeps caller style, drops out under `unsafe`, and the KAV behavior per platform. ENG-605 PR4. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): pad react-native-modal bottom sheets by the safe-area inset Audit of the 25 react-native-modal usages: 14 are centered (default margin, no bar overlap), 2 are top-anchored, 1 is the blocking app-update gate with 68dp of bottom clearance, 1 (modal-nfc) already uses a context SafeAreaView, and 7 are bottom sheets flush to the window edge. Those 7 get the new shared hook. useModalInsetStyle("sheet" | "fullScreen") in app/hooks/use-modal-insets returns a memoised padding style from useSafeAreaInsets. All 7 sheets render inline (coverScreen={false}, the #545 Fabric workaround) and Yoga sizes an inset-positioned absolute child against the parent's padding box, so the sheet reaches the physical bottom even inside Screen's padded wrapper; the inset must live on the sheet. coverScreen settings untouched. Sheets: contact-modal, AccountCreateModal, modal-tooltip, reports-modal, CashoutAccountPicker, CashWalletCutoverModal, earns-quiz. ENG-605 PR4. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): generalise the keyboard padding hook, audit KeyboardAvoidingView The chat-local reanimated IME hook moves to app/hooks/use-keyboard-padding with a new contract: useKeyboardPaddingStyle(appliedBottomInset) pads by max(imeHeight - appliedBottomInset, 0). Screen now pads insets.bottom itself, so callers pass that and the composer never stacks the nav-bar band twice. The arithmetic is a pure keyboardPaddingFor() with a spec. KeyboardAvoidingView audit (8 files): - Screen: documented in the previous commit. - messages, SupportGroupChat: already on the hook; drop the manual Android insets.top header padding (Screen pads it now). - BridgeAddExternalAccount: Android "height" double-shrank on Android 14 and older (window resize + KAV) and misses the Gboard strip under edge-to-edge; switch to the hook, KAV becomes an Android no-op. - BridgeKycModal, quick-zap-modal, CreateGroupModal, GroupInfoModal, GroupMembersModal: sheets inside a core Modal. RN's dialog window uses SOFT_INPUT_ADJUST_RESIZE with a fitsSystemWindows root, so the framework pads for the IME and bars; behavior stays undefined on Android, now with a comment saying why. ENG-605 PR4. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(ui): make the modal inset hook additive, skip it on Home-tab sheets Review fixes for #741 (ENG-605). - `useModalInsetStyle` now takes the sheet's base style and returns `paddingBottom = basePaddingBottom + inset` (folding in `paddingVertical` and the `padding` shorthand). Every consumer places the result after its base style, so the old bare `{ paddingBottom: inset }` replaced the designed padding -- with 0 on a non-edge-to-edge window, which stripped `paddingBottom: 32/20/40` and the bottom of `padding: 24`. The hook spec now asserts the sum, the shorthand fold, style arrays, and the inset-0 case keeping the base padding. - `AccountCreateModal` and `CashWalletCutoverModal` drop the hook: they live on the Home bottom-tab screen, whose tab bar already pads `insets.bottom`, so the raw window inset stacked a second band above the tab bar today on Face ID iPhones and Android 15 3-button nav. - `NIP17Chat`: `{ flex: 1 }` moves into `useStyles` (`styles.flex`), clearing the `react-native/no-inline-styles` error on the changed line. - `use-keyboard-padding.ts`: correct the comment -- reanimated 3.18.2 does NOT restore `decorFitsSystemWindows` on unmount, so Android 14 stays edge-to-edge for the process after the first chat visit. - Consumer pins: `cashout-account-picker.spec` renders under a `SafeAreaProvider` with `bottom: 48` and asserts the sheet's flattened `paddingBottom` is `32 + 48` (and `32` at inset 0); `contact-modal.spec` asserts its wrapper gets `48`. New `cashout-account-sheet`, `contact-modal-sheet`, `modal-tooltip-sheet` test ids. - `app/hooks/index.ts`: drop the `use-modal-insets` barrel export; both new hooks are imported by deep path, one convention. Co-Authored-By: Claude Fable 5.1 <[email protected]> * test(ui): share the safe-area mock, pin ModalTooltip, drop the unused fullScreen kind Review fixes on the ENG-605 modal inset work: - CashoutAccountPicker: the sheet container used `testProps`, which sets `accessible` and collapses the whole sheet into a single VoiceOver stop on iOS. Use a plain `testID` like the sibling sheet ids. - ModalTooltip: add a spec that pins the `padding` shorthand fold (the only consumer on that path) plus the inline render, under both a 3-button-nav inset and a non-edge-to-edge window. - Extract the `react-native-safe-area-context` provider mock, pasted into four specs, to `__tests__/helpers/safe-area-context-mock.ts`; it provides the frame context everywhere so a future consumer under a react-navigation header does not need its own variant. - use-modal-insets: drop the `fullScreen` kind and `basePaddingTop`, which had no consumer (the audit found no full-screen react-native-modal content), and their spec case. Co-Authored-By: Claude Fable 5.1 <[email protected]> * refactor(hooks): drop the unused kind parameter from useModalInsetStyle Only the bottom-sheet case exists; the parameter named an edge the hook never read (review round 3). Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Dread <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
islandbitcoin
pushed a commit
that referenced
this pull request
Oct 4, 2026
… in reach
Android has no system NFC sheet, so the Flashcard provider shows its own
("Ready to Scan" with a Cancel) while a read waits for a card. It was a
transparent core React Native Modal with a bottom-pinned sheet, the case
the Fabric Modal host measures wrongly on Android (#545): on the Pixel only
part of the NFC illustration showed, top-left, with no backdrop, no text
and no Cancel. Back was the only way out.
The sheet now renders inline through react-native-modal (coverScreen
false), as modal-nfc does since #674, in a full-size frame the provider
wraps around the app. A SafeAreaView keeps Cancel above the navigation bar
under Android 16's edge-to-edge. Cancel, Back and a tap on the backdrop
each end the read. iOS keeps its system sheet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
islandbitcoin
added a commit
that referenced
this pull request
Oct 5, 2026
… in reach (#751) * fix(flashcard): render the Android NFC scan sheet inline, with Cancel in reach Android has no system NFC sheet, so the Flashcard provider shows its own ("Ready to Scan" with a Cancel) while a read waits for a card. It was a transparent core React Native Modal with a bottom-pinned sheet, the case the Fabric Modal host measures wrongly on Android (#545): on the Pixel only part of the NFC illustration showed, top-left, with no backdrop, no text and no Cancel. Back was the only way out. The sheet now renders inline through react-native-modal (coverScreen false), as modal-nfc does since #674, in a full-size frame the provider wraps around the app. A SafeAreaView keeps Cancel above the navigation bar under Android 16's edge-to-edge. Cancel, Back and a tap on the backdrop each end the read. iOS keeps its system sheet. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(flashcard): press Back through BackHandler, under the real navigation container Review fixes for #751. - Back: the spec called the sheet's onBackButtonPress prop, so it could not see how Back really arrives. Inline there is no native dialog to catch it; react-native-modal's BackHandler listener does, and BackHandler runs the newest listener first. The spec now presses Back through React Native's own BackHandler mock, and again under the app's real NavigationContainerWrapper over a two-screen stack: with the sheet up, Back ends the read and the card screen stays; with the sheet down, Back pops the screen. Making the wrapper's getInitialURL synchronous fails that test. - Inline: the test only read the coverScreen prop. It now asserts no core Modal is in the tree while the sheet is up, as app-update-inline-modal.spec.tsx does. - Backdrop: pressed where react-native-modal draws it, not through the prop. - Comments at the sheet and at FlashcardProvider in app.tsx say why the provider has to stay inside NavigationContainerWrapper. No runtime change: the app bundle is byte-identical to the previous commit's. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(flashcard): pin the scan sheet's bottom inset and app frame Review fixes for #751. The Pixel was not attached, so the device check ran on an API 35 emulator instead (Pixel 7 Pro profile, Fabric, a debug build of this branch, NFC faked in JS for the run and not committed). The sheet drew right in gesture and in 3-button navigation: dimmed backdrop, "Ready to Scan", and Cancel ending one navigation-bar height plus the sheet's 20 dp padding above the bottom. Cancel, Back and a backdrop tap each closed it, and Back over a pushed screen left that screen up. The Pixel check is now an Android RC blocker in the 0.7.3 Linear project rather than a line in this PR's body. The spec now pins the two facts that run depends on: Cancel sits in a SafeAreaView padded on the bottom edge only, and the sheet's parent is the flex: 1 frame the app renders in. Each assertion fails when its fact is removed (bottom edge dropped or joined by top, SafeAreaView swapped for a View, Cancel moved out of it, flex dropped, sheet or app moved out of the frame). The spec's gate note names the Linear issue. No runtime change. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Dread <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables React Native New Architecture (Fabric + TurboModules) on both platforms.
This is a prerequisite for integrating Breez SDK Spark, which requires TurboModules.
What changed:
What didn't need to change:
RN 0.76's interop layer handled all ~70+ native dependencies automatically — no patches, no version bumps, no dependency changes required. All 4 existing patches still apply cleanly.
Verified:
Manual QA and Testing recommended before merge: