Skip to content

fix: ignore isLaidOut check for React Native replay#484

Merged
marandaneto merged 1 commit intomainfrom
fix/react-native-ignore-laidout-check
Apr 9, 2026
Merged

fix: ignore isLaidOut check for React Native replay#484
marandaneto merged 1 commit intomainfrom
fix/react-native-ignore-laidout-check

Conversation

@marandaneto
Copy link
Copy Markdown
Member

@marandaneto marandaneto commented Apr 9, 2026

💡 Motivation and Context

Possible fix for PostHog/posthog-js#3346.
and https://posthog.slack.com/archives/C089TNZQF19/p1775162582175299

React Native session replay views can reach this path before Android reports them as laid out, which causes the stability check to reject otherwise valid views.

💚 How did you test it?

  • Ran ./gradlew :posthog-android:compileDebugKotlin

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran pnpm changeset to generate a changeset file
  • Added the "release" label to the PR to indicate we're publishing new versions for the affected packages

@marandaneto marandaneto merged commit 2c3101a into main Apr 9, 2026
12 checks passed
@marandaneto marandaneto deleted the fix/react-native-ignore-laidout-check branch April 9, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants