Skip to content

Conversation

@Karam19
Copy link
Contributor

@Karam19 Karam19 commented Nov 6, 2025

Description

Testing (ignore for documentation update)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist:

Additional Notes:

Summary by CodeRabbit

  • Documentation
    • Restructured React Native installation guide with clearer prerequisites, examples, and step-by-step instructions for both Expo and non-Expo workflows.
    • Expanded usage documentation with detailed parameter definitions, comprehensive examples, and platform-specific troubleshooting guidance.
    • Added new sections for exception handling and advanced configuration options.

@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Nov 6, 2025 6:24pm

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai
Copy link

coderabbitai bot commented Nov 6, 2025

Walkthrough

React Native documentation is restructured across installation and usage guides. The installation docs introduce new Prerequisites and Examples sections, expand Expo workflow with tabbed layouts and warnings, reorganize Android/iOS setup paths, and add Advanced iOS Setup details. The usage guide standardizes section headings and adds parameter definitions, override APIs, and troubleshooting guidance. No code logic or public signatures modified.

Changes

Cohort / File(s) Summary
React Native Documentation Updates
content/docs/react-native/installation.mdx, content/docs/react-native/usage.mdx
Installation docs: Replaced "Get an API Key" with Prerequisites section, added Examples, expanded Expo workflow with tabbed layout and warnings, reorganized Without Expo path with GitHub alternatives, expanded iOS setup with Advanced section for Pod overrides, and repositioned Contributing/License sections. Usage docs: Restructured with standardized headings (Basic Usage, Start Verification, Exception Handling, Advanced, Troubleshooting), added detailed parameter definitions and override/config API documentation, and added platform-specific troubleshooting guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

  • Documentation-only changes: No logic, code signatures, or exports modified; review focuses on content accuracy and clarity
  • Consistent pattern: Both files undergo similar restructuring (reorganization and content expansion) rather than diverse changes
  • Key areas to verify: Accuracy of setup instructions for Expo, Android, and iOS workflows; clarity of new Prerequisites and Examples sections; consistency of parameter definitions in usage guide

Possibly related PRs

Suggested labels

documentation

Suggested reviewers

  • Kushal7788
  • AbdulRashidReshamwala
  • predatorx7

Poem

🐰 A flutter of docs, restructured with care,
Prerequisites, examples, setup laid bare,
Expo workflows now tabbed and bright,
iOS and Android paths set right,
From install to usage, a guide so fair!

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'docs: update react native sdk docs with the latest changes' is vague and generic, using non-descriptive language that doesn't convey specific meaningful information about the actual changes made to the documentation. Consider a more specific title that highlights the main changes, such as 'docs: restructure React Native SDK installation and usage guides' or 'docs: add prerequisites, examples, and tabbed layouts to React Native docs'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-reactnative-inapp-sdk-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (5)
content/docs/react-native/usage.mdx (3)

36-84: Comprehensive parameter documentation, but verify API accuracy.

The parameter documentation is thorough and well-structured. However, at line 82, the code example uses ReclaimVerification.ProviderVersion.resolved('1.0.0'), which should be verified against the actual SDK implementation to ensure this static method signature exists and is the correct way to specify provider versions.

If this API differs from the actual SDK, clarify the correct usage pattern with an inline comment or link to SDK documentation.


86-111: Adequate alternative method documentation, but lacks context on when to use each approach.

The two alternative verification methods are documented but without guidance on use cases. Consider adding brief explanations:

  • When should startVerificationFromUrl be preferred over direct startVerification?
  • What format should the JSON template follow?

This would help developers choose the right approach for their needs.


161-195: Advanced APIs documented, but setVerificationOptions needs more detail, and external link requires verification.

The setOverrides() and clearAllOverrides() methods are clear, but setVerificationOptions() at lines 192–195 lacks parameter documentation or examples. Additionally, verify that the external link at line 177 (https://github.com/reclaimprotocol/reclaim-inapp-reactnative-sdk/blob/main/documentation/overrides.md) is accessible and current.

Add parameter documentation or an example for setVerificationOptions() to guide developers on what options are available and how to use them.

content/docs/react-native/installation.mdx (2)

153-178: iOS setup clear, but performance fix duplicates earlier Expo section.

The iOS setup is straightforward. However, the GODEBUG performance fix at lines 170–178 duplicates the earlier Expo section (lines 85–93). Consider linking or consolidating this guidance to reduce maintenance burden and improve user experience.

Consider using a cross-reference: "See the iOS Performance Fix section above" instead of repeating the full instructions.


180-206: Advanced iOS setup with clear alternatives, but version constraint needs verification.

The accordion-organized advanced setup provides three installation methods (CocoaPods recommended, Git Tag, Git HEAD). Verify:

  • The pod version constraint at line 189: ~> 0.18.0 — confirm this is a stable, current version
  • The Git URLs at lines 194 and 199 point to the correct repository and remain accessible
  • Whether this advanced override section is still necessary or if recent SDK versions have resolved dependency conflicts

Consider adding a note explaining when developers should use this override (e.g., "Use this only if automatic dependency resolution fails").

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 20b0dcb and 05bcd9e.

📒 Files selected for processing (2)
  • content/docs/react-native/installation.mdx (3 hunks)
  • content/docs/react-native/usage.mdx (2 hunks)
🔇 Additional comments (9)
content/docs/react-native/usage.mdx (4)

1-32: Clear and well-organized basic setup flow.

The restructured section provides a logical step-by-step initialization path. However, verify that the config object pattern with optional chaining (config.REACT_APP_RECLAIM_APP_ID ?? '') accurately reflects how developers should handle credentials—ensure this doesn't mask missing configuration issues that should fail loudly rather than silently defaulting to empty strings.


113-159: Thorough exception handling with realistic example.

The exception handling section is well-structured with clear case statements and proper error detail access. Verify that all documented exception types (ExceptionType.Cancelled, Dismissed, SessionExpired, Failed) and error properties (sessionId, reason, innerError) match the actual SDK implementation.


197-229: Practical troubleshooting guidance with good platform separation, but version specificity needs verification.

The troubleshooting section provides actionable solutions for known issues. However, verify that the specific dependency versions are still current and necessary:

  • Cronet version 119.6045.31 at line 206
  • Minimum SDK version 0.7.3 at line 225 for build fixes

Consider adding a note about when these versions were tested and recommending developers check the SDK changelog for version-specific guidance.


231-246: Comprehensive migration guide coverage with helpful changelog reminder.

The migration section provides links for all major versions. Verify that all the migration guide links at lines 235–242 are accessible, particularly for older versions (0.6.0–0.8.3) which may have moved or been consolidated.

content/docs/react-native/installation.mdx (5)

16-31: Well-structured prerequisites with practical examples, but external links need verification.

The prerequisites section clearly identifies required setup steps with a helpful fallback link to the Get API Key guide. The examples provide directly relevant sample code. Verify that all external links are accessible:

  • Reclaim Devtools at line 22: https://dev.reclaimprotocol.org/explore
  • GitHub sample repos at lines 29–30
  • Relative link /api-key is resolved correctly in the docs site

34-57: Clear Expo setup with appropriate warnings about Expo Go limitations.

The warning callout at lines 55–57 effectively communicates the native code limitation and development build requirement. Verify that the config plugin name @reclaimprotocol/inapp-rn-sdk at line 49 is accurate for current versions and that the warning still applies to the latest Expo versions.


59-83: Tabbed build instructions provide clear platform paths.

The tabbed layout effectively separates EAS and non-EAS build paths. Verify that the commands match current Expo CLI conventions and that npx eas-cli is still the recommended entry point (line 77–80) for latest versions.


85-93: Clear iOS performance troubleshooting steps.

The GODEBUG environment variable configuration is clearly documented with step-by-step guidance. Verify that this workaround is still necessary for current SDK versions and that asyncpreemptoff=1 is the correct and complete fix for iOS performance issues on physical devices.


111-151: Android setup instructions are detailed, but repository URLs and class names need verification.

The Android setup covers both manifest configuration and repository setup clearly. However, verify:

  • The activity class name at line 119: org.reclaimprotocol.inapp_sdk.ReclaimActivity
  • The AWS S3 repository URL at line 135: https://reclaim-inapp-sdk.s3.ap-south-1.amazonaws.com/android/repo
  • Whether the fallback suggestion at line 150 to add repositories to root build.gradle remains valid for current Android/Gradle versions

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.

3 participants