Skip to content

feat: GleapBannerArea keeps the app below inline banners - #66

Merged
boehlerlukas merged 1 commit into
mainfrom
feat/inline-banner-inset
Oct 16, 2026
Merged

boehlerlukas merged 1 commit into
mainfrom
feat/inline-banner-inset

Conversation

@boehlerlukas

Copy link
Copy Markdown
Contributor

React Native counterpart of GleapSDK/Flutter-SDK#46 (customer: Operátor ICT, ticket 129428). Uses the native API from GleapSDK/Gleap-iOS-SDK#58 and GleapSDK/Android-SDK#53.

  • Native bridges forward bannerHeightChanged (iOS delegate / Android callback) and export getBannerHeight().
  • JS: src/bannerHeight.ts holds the current height, read on load and on initialized because the native SDKs only report changes (JS reload). useGleapBannerHeight() hook, GleapBannerArea (animated paddingTop, 250 ms), registerListener('bannerHeightChanged', …) also fires.
  • Opt-in: apps without GleapBannerArea keep the overlay behaviour. README documents the safe-area-context adjustment (the banner already covers the status bar).

Verified

  • iOS bridge: clang -fsyntax-only against the new Gleap headers + RN 0.85 headers, 0 errors.
  • Android bridge: javac against the new AAR (local 19.2.4 + this feature) and react-android 0.87, 0 errors.
  • JS: tsc, eslint, jest (29) pass; bob build OK; a scratch jest run covered initial getter, events, duplicate suppression and JS-reload recovery.
  • Not run on a device: the example app is RN 0.71 and doesn't build on Xcode 27. The native side was verified end to end through the Flutter example (see Flutter-SDK#46).

Compiles against the published SDKs only after the 19.3.0 native release; the release bump updates the pins.

🤖 Generated with Claude Code

Forwards the native bannerHeightChanged event, adds Gleap.getBannerHeight() (read on load and on
initialized, since the native SDKs only report changes), useGleapBannerHeight() and
GleapBannerArea, which pads its children down by the banner's height (animated).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boehlerlukas
boehlerlukas merged commit c096dd0 into main Oct 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant