Skip to content

feat: use the prefixed native names from @livekit/react-native-webrtc - #488

Merged
davidliu merged 2 commits into
mainfrom
dl/full_rename
Nov 17, 2026
Merged

davidliu merged 2 commits into
mainfrom
dl/full_rename

Conversation

@davidliu

Copy link
Copy Markdown
Contributor

@livekit/react-native-webrtc now prefixes its native names so it can be installed next to other react-native-webrtc forks:

  • Android: import from io.livekit.reactnative.webrtc instead of com.oney.WebRTCModule. Class names are unchanged.
  • iOS: use LKRNWebRTCModule and LKRNWebRTCModuleOptions, and import their renamed headers.
  • README and example: the new iOS names, and NativeModules.LKRNScreenCapturePickerViewManager for the screen share picker.

The peer range on @livekit/react-native-webrtc still needs to move to ^150.2.0 once that version is published. Until then this doesn't build against the published package, which still uses the old names.

@changeset-bot

changeset-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc0072b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@livekit/react-native Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

davidliu and others added 2 commits November 17, 2026 22:44
@livekit/react-native-webrtc now prefixes its native names so it can be
installed next to other react-native-webrtc forks:

- Android: import from io.livekit.reactnative.webrtc instead of
  com.oney.WebRTCModule. Class names are unchanged.
- iOS: use LKRNWebRTCModule and LKRNWebRTCModuleOptions, and import their
  renamed headers.
- README and example: the new iOS names, and
  NativeModules.LKRNScreenCapturePickerViewManager for the screen share
  picker.

The peer range on @livekit/react-native-webrtc still needs to move to
^150.2.0 once that version is published. Until then this doesn't build
against the published package, which still uses the old names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davidliu
davidliu merged commit 20fd1eb into main Nov 17, 2026
5 checks passed
@davidliu
davidliu deleted the dl/full_rename branch November 17, 2026 14:13
@github-actions github-actions Bot mentioned this pull request Nov 17, 2026
davidliu pushed a commit that referenced this pull request Nov 17, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @livekit/react-native@3.2.0

### Minor Changes

- Update `@livekit/react-native-webrtc` to 150.2.0, which renames its
native classes so it can be installed in the same app as other
react-native-webrtc forks. -
[#488](#488)
([@davidliu](https://github.com/davidliu))

Update both packages together: this release doesn't build against
earlier `@livekit/react-native-webrtc` versions, and earlier releases of
this package don't build against 150.2.0. Expo users also need to update
the [Expo
plugin](https://github.com/livekit/client-sdk-react-native-expo-plugin).

  If your app uses any of these native names, switch to the new ones:
- iOS: classes and their headers gain an `LKRN` prefix. The Objective-C
setup imports `WebRTCModuleOptions.h` in `AppDelegate`; change it to
`#import "LKRNWebRTCModuleOptions.h"`. Use `LKRNWebRTCModuleOptions` in
place of `WebRTCModuleOptions`, in Swift too.
- iOS screen sharing: open the broadcast picker with
`NativeModules.LKRNScreenCapturePickerViewManager.show(reactTag)`
instead of
`NativeModules.ScreenCapturePickerViewManager.show(reactTag)`.
- Android: `com.oney.WebRTCModule.*` becomes
`io.livekit.reactnative.webrtc.*`. Class names are unchanged, so
`WebRTCModuleOptions` is now
`io.livekit.reactnative.webrtc.WebRTCModuleOptions`.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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