New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-video

Package Overview
Dependencies
Maintainers
3
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-video - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

android/build.gradle

33

package.json
{
"name": "react-native-video",
"version": "0.6.1",
"version": "0.7.0",
"description": "A <Video /> element for react-native",
"main": "Video.ios.js",
"main": "Video.js",
"author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",
"files": [
"android/build.gradle",
"android/RCTVideo.iml",
"android/src/main/AndroidManifest.xml",
"android/src/main/res/values/styles.xml",
"android/src/main/java/com/brentvatne/react/ReactVideoPackage.java",
"android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java",
"android/src/main/java/com/brentvatne/react/ReactVideoView.java",
"RCTVideo.xcodeproj",

@@ -14,6 +21,4 @@ "RCTVideo.h",

"README.md",
"Video.android.js",
"Video.ios.js",
"VideoResizeMode.js",
"VideoStylePropTypes.js"
"Video.js",
"VideoResizeMode.js"
],

@@ -24,2 +29,6 @@ "contributors": [

"email": "johannes@lum.pe"
},
{
"name": "Baris Sencan",
"email": "baris.sncn@gmail.com"
}

@@ -32,8 +41,14 @@ ],

"devDependencies": {
"jest-cli": "0.2.1"
"jest-cli": "0.2.1",
"eslint": "1.10.3",
"babel-eslint": "5.0.0-beta8",
"eslint-plugin-react": "3.16.1",
"eslint-config-airbnb": "4.0.0"
},
"dependencies": {
"keymirror": "^0.1.1",
"lodash": "^3.10.1"
"keymirror": "0.1.1"
},
"scripts": {
"test": "node_modules/.bin/eslint *.js"
}
}

@@ -10,12 +10,44 @@ ## react-native-video

1. Run `npm install react-native-video --save`
2. Open your project in XCode, right click on `Libraries` and click `Add Files to "Your Project Name"`
Run `npm install react-native-video --save`
#### iOS
1. Open your project in XCode, right click on `Libraries` and click `Add Files to "Your Project Name"`
* ![Screenshot](http://url.brentvatne.ca/jQp8.png) ![Screenshot](http://url.brentvatne.ca/1gqUD.png) (use the RCTVideo project rather than the one pictured in screenshot).
3. Add `libRTCVideo.a` to `Build Phases -> Link Binary With Libraries`
2. Add `libRTCVideo.a` to `Build Phases -> Link Binary With Libraries`
![(Screenshot)](http://url.brentvatne.ca/g9Wp.png).
4. Add `.mp4` video file to project and to `Build Phases -> Copy Bundle Resources`
5. Whenever you want to use it within React code now you can: `var Video =
3. Add `.mp4` video file to project and to `Build Phases -> Copy Bundle Resources`
4. Whenever you want to use it within React code now you can: `var Video =
require('react-native-video');`
#### Android
Make the following additions to the given files.
**android/settings.gradle**
```
include ':RCTVideo', ':app'
project(':RCTVideo').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
```
**android/app/build.gradle**
```
dependencies {
...
compile project(':RCTVideo')
}
```
**MainActivity.java**
On top, where imports are:
```java
import com.brentvatne.react.ReactVideoPackage;
```
Under `.addPackage(new MainReactPackage())`:
```java
.addPackage(new ReactVideoPackage())
```
## Usage

@@ -52,2 +84,3 @@

```
## Static Methods

@@ -54,0 +87,0 @@

@@ -1,6 +0,4 @@

'use strict';
import keyMirror from 'keymirror';
var keyMirror = require('keymirror');
var VideoResizeMode = keyMirror({
export default keyMirror({
contain: null,

@@ -10,3 +8,1 @@ cover: null,

});
module.exports = VideoResizeMode;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc