
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@humanz/react-native-video-preview
Advanced tools
A <VideoPreview> component for react-native on Android.
iOS support is not included because react-native-video already shows a preview when loading a video that is paused.
Run npm i -S git://github.com/chadsmith/react-native-video-preview.git
Then run react-native link react-native-video-preview
Inside your code, import the component by adding:
import VideoPreview from 'react-native-video-preview';
If necessary, make the following additions to the given files manually:
android/settings.gradle
include ':react-native-video-preview'
project(':react-native-video-preview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video-preview/android')
android/app/build.gradle
dependencies {
...
compile project(':react-native-video-preview')
}
MainApplication.java
On top, import:
import com.github.chadsmith.RCTVideoPreview;
Under .addPackage(new MainReactPackage()):
.addPackage(new VideoPreviewPackage())
<VideoPreview
source={{ uri: 'http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4' }} // Can be a URL or a local file.
style={styles.preview}
resizeMode="contain" />
// Later on in your styles..
var styles = StyleSheet.create({
preview: {
height: 180,
width: 320,
},
});
MIT Licensed
FAQs
A <VideoPreview /> element for react-native
The npm package @humanz/react-native-video-preview receives a total of 10 weekly downloads. As such, @humanz/react-native-video-preview popularity was classified as not popular.
We found that @humanz/react-native-video-preview 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.