Skip to content

[RUM-7591] Update React Native Hybrid App to RN 0.79 and latest SDK#38

Open
marco-saia-datadog wants to merge 2 commits intomainfrom
marcosaia/RUM-7591/update-hybrid-app
Open

[RUM-7591] Update React Native Hybrid App to RN 0.79 and latest SDK#38
marco-saia-datadog wants to merge 2 commits intomainfrom
marcosaia/RUM-7591/update-hybrid-app

Conversation

@marco-saia-datadog
Copy link
Copy Markdown
Member

What does this PR do?

Updates the React Native hybrid app example to the latest version of React Native (0.79), and of our React Native SDK (2.7.0).

In addition, Session Replay has been introduced in the example project.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@marco-saia-datadog marco-saia-datadog requested a review from a team as a code owner April 30, 2025 10:13
Comment on lines +19 to +24
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
add(MyAppPackage())
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Quality Violation

Function return type should be preceded by a single space. (...read more)

Kotlin enforces consistent spacing around the function return type: one space before the return type.

View in Datadog  Leave us feedback  Documentation

Comment on lines +22 to +23
override fun createReactActivityDelegate(): ReactActivityDelegate =
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Quality Violation

Function return type should be preceded by a single space. (...read more)

Kotlin enforces consistent spacing around the function return type: one space before the return type.

View in Datadog  Leave us feedback  Documentation

override fun getJSMainModuleName(): String {
return "index"
}
override fun getJSMainModuleName(): String = "index"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Quality Violation

Suggested change
override fun getJSMainModuleName(): String = "index"
override fun getJSMainModuleName(): String = "index"
Function return type should be preceded by a single space. (...read more)

Kotlin enforces consistent spacing around the function return type: one space before the return type.

View in Datadog  Leave us feedback  Documentation

override val isHermesEnabled: Boolean
protected get() = BuildConfig.IS_HERMES_ENABLED
}
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Quality Violation

Suggested change
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
Function return type should be preceded by a single space. (...read more)

Kotlin enforces consistent spacing around the function return type: one space before the return type.

View in Datadog  Leave us feedback  Documentation


# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟠 Library Vulnerability

activesupport → 6.1.7.2

View all suggested fixes
Suggested change
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'activesupport', 7.1.0 '!= 7.1.0'
Suggested change
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'activesupport', 6.1.7.5 '!= 7.1.0'
Active Support Possibly Discloses Locally Encrypted Files (...read more)

View in Datadog  Leave us feedback  Documentation

"dependencies": {
"@datadog/mobile-react-native": "^2.4.4",
"@datadog/mobile-react-navigation": "^2.4.4",
"@datadog/mobile-react-native": "2.7.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we bump it directly to the latest 2.10.1?

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.

2 participants