question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native 0.60

See original GitHub issue

I tried to install this library by according to the installation documentation and build with latest React Native v0.60, but errors occured on android. There are some breaking changes.

https://facebook.github.io/react-native/blog/2019/07/03/version-60

A Note to Library Maintainers

Changes for AndroidX will almost certainly require updates to your library, so be sure to include support soon. If you’re not able to upgrade yet, consider checking your library against the jetifier to confirm that users are able to patch your library at build time. Review the autolinking docs to update your configs and readme. Depending on how your library was previously integrated, you may also need to make some additional changes. Check the dependencies guide from the CLI for information on how to define your dependency interface.

Migrating from android.support to androidx

Fix this library code or users need to patch the node_moduels by using jetifier. example:

// before
import android.support.annotation.Nullable
// after
import androidx.annotation.Nullable

Autolinking

https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

yarn add react-native-webview
cd ios && pod install && cd .. # CocoaPods on iOS needs this extra step
# run
yarn react-native run-ios
yarn react-native run-android

These steps of the installation documentation cause build and runtime error by conflict with autolinking.

  • 2.) In android/settings.gradle, includes WebRTCModule
  • 3.) In android/app/build.gradle, add WebRTCModule to dependencies
  • 4.) In android/app/src/main/java/com/xxx/MainApplication.java

No error occured on ios with Cocoapods, but it seems the ios steps also can be simpler.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
RaeesBhatticommented, Jul 16, 2019

Please ignore the above comments, the errors were introduced by using Network inspect on React Native Debugger and were not related to react-native-webrtc.

1reaction
RaeesBhatticommented, Jul 16, 2019

I’m not exactly sure how they’re related but react-native-webrtc is somehow breaking my HTTP API calls (fetch). If I remove react-native-webrtc from my project, the requests work just fine but when I add it back, I get Unexpected token o in JSON at position 1 error on all of my fetch requests. I’m using react-native 0.60.3. Should it be tracked here or should I create a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Announcing React Native 0.60
After months of hard work from hundreds of contributors, the React Native Core team is proud to announce the release of version 0.60....
Read more >
Upgrade to React Native 0.60 - Matt Oakes
React Native 0.60 is a major update which brings many welcome changes. The normal upgrade process applies, however, to upgrade smoothly it is...
Read more >
0.60.5 - react-native - npm
A framework for building native apps using React. Latest version: 0.70.6, last published: a month ago. Start using react-native in your ...
Read more >
React Native Introduces Its Latest Version 0.60
Let's find out various new features of React Native 0.60: · Improvements in Accessibility · All New Screen · Support for AndroidX ·...
Read more >
Upgrading a React Native app from 0.60 to 0.65 - YouTube
Jamon attempts to upgrade a React Native app from 0.60 to 0.65 with ... mixed results. -- Watch live at https://www.twitch.tv/jamonholmgren.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found