
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-native-youtube-iframe-with-fs-callback
Advanced tools
A simple wrapper around the youtube iframe js API for react native
A wrapper of the Youtube IFrame player API build for react native.
This package uses react-hooks and therefore will need react-native 0.59
or above
(recommended - react native version - 0.60
or above)
react-native-webview
.Bare React Native app - Instructions
0.60
and above, install the latest version of react-native-webview0.60
, react-native-webview version 6.11.1
is the last version that supports it.Expo Managed App - Instructions
npm install react-native-youtube-iframe
import React, {useRef, useState} from 'react';
import YoutubePlayer from 'react-native-youtube-iframe';
const playerRef = useRef(null);
const [playing, setPlaying] = useState(true);
<YoutubePlayer
ref={playerRef}
height={300}
width={400}
videoId={"AVAc1gYLZK0"}
play={playing}
onChangeState={event => console.log(event)}
onReady={() => console.log("ready")}
onError={e => console.log(e)}
onFullScreenChange={status => console.log(status)}
onPlaybackQualityChange={q => console.log(q)}
volume={50}
playbackRate={1}
playerParams={{
cc_lang_pref: "us",
showClosedCaptions: true
}}
/>
list of available APIs -
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
A simple wrapper around the youtube iframe js API for react native
The npm package react-native-youtube-iframe-with-fs-callback receives a total of 4 weekly downloads. As such, react-native-youtube-iframe-with-fs-callback popularity was classified as not popular.
We found that react-native-youtube-iframe-with-fs-callback demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.