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.

error when loading youtube video on iOS

See original GitHub issue

I’ve been doing all the requirements (installing, linking the lib both ways, calling the component) and still have an error on the screen that holds the <Youtube /> component. I provided an apiKey. The error says: invariant violation: Native component for "RCTYoutube" does not exist.

I’m not using create-react-native starter, and build my app through react-native run-ios

Could you please help me solving this basic issue ? Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

4reactions
udugamcommented, Feb 9, 2018

@rajatbeck, open your IOS project in Xcode and check to see if the “RCTYoutube.xcodeproj” library was actually added to the “Libraries” folder. Also check to see if “libRCTYouTube.a” was added to the “Link Binary With Libraries” list found in your Targets’ Build Phases.

If not, you need to add the “RCTYoutube.xcodeproj” library to the Xcode Libraries folder. You can find “RCTYoutube.xcodeproj” in the react-native-youtube folder of your app’s Node Modules folder. Once you’ve done that you’ll be able to find the “libRCTYouTube.a” binary when you click the “+” option at the end of the “Link Binary With Libraries” list found in your Targets’ Build Phases. All should be working after this is done.

The official docs for manually linking libraries explains it well with screenshots: https://facebook.github.io/react-native/docs/linking-libraries-ios.html

1reaction
samernadycommented, Jan 31, 2018

any update on that ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix “YouTube Error Loading Tap to Retry” on iPhone
How to Fix YouTube Error Loading Tap to Retry on iPhone · Tip 1. Update the YouTube App from App Store · Tip...
Read more >
Troubleshoot YouTube error messages - iPhone & iPad
Restart the YouTube app. Restart your device: Do a hard restart by disconnecting the power and then reconnecting. For game consoles: Uninstall and...
Read more >
Fix YouTube Error loading Tap to Retry on iPhone iOS 16 ...
Fix YouTube Error loading Tap to Retry on iPhone iOS 16 Updated · #1. Update YouTube App and iPhone · #2. Update Modem...
Read more >
9 Ways to Fix YouTube Error Loading Tap to Retry iPhone
How to Fix YouTube Error Loading Tap To Retry iPhone? · Update the YouTube App · Check Your Internet Connection · Check for...
Read more >
[Solved!] YouTube Error Loading Tap to Retry on iPhone
Update your YouTube app · Reinstall your YouTube app · Make sure the Airplane mode is disabled · Watch the video later ·...
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