react-native-youtube
Advanced tools
Comparing version 0.8.1 to 0.8.2
{ | ||
"name": "react-native-youtube", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "A <YouTube/> component for React Native.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -13,2 +13,4 @@ # react-native-youtube [![react-native-youtube](http://img.shields.io/npm/dm/react-native-youtube.svg)](https://www.npmjs.org/package/react-native-youtube) [![npm version](https://badge.fury.io/js/react-native-youtube.svg)](http://badge.fury.io/js/react-native-youtube) [![Dependency Status](https://david-dm.org/inProgress-team/react-native-youtube.svg)](https://david-dm.org/inProgress-team/react-native-youtube) | ||
```javascript | ||
import YouTube from 'react-native-youtube' | ||
<YouTube | ||
@@ -64,5 +66,5 @@ ref="youtubePlayer" | ||
### Installation | ||
## Installation | ||
##### IOS | ||
#### iOS | ||
(requires react-native >= 0.6.0) | ||
@@ -74,3 +76,3 @@ | ||
##### OPTIONAL : Activated sound when phone is on vibrate mode | ||
##### OPTIONAL: Activated sound when phone is on vibrate mode | ||
@@ -83,26 +85,25 @@ Open AppDelegate.m and add : | ||
##### Android : rnpm is not working yet !! | ||
#### Android: rnpm is not working yet !! | ||
In node_module : | ||
In node_module: | ||
`$ git clone https://github.com/inProgress-team/react-native-youtube.git` | ||
Then add in settings.gradle : | ||
``` | ||
Then add in settings.gradle: | ||
``` | ||
include ':RCTYouTube', ':app' | ||
project(':RCTYouTube').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-youtube/RCTYouTube') | ||
``` | ||
In build.gradle : ( The one inside android/app . **NOT** android/build.gradle ) | ||
project(':RCTYouTube').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-youtube/android') | ||
``` | ||
In build.gradle: ( The one inside android/app . **NOT** android/build.gradle ) | ||
``` | ||
dependencies { | ||
``` | ||
dependencies { | ||
[...] | ||
compile project(':RCTYouTube') // From node_modules | ||
} | ||
} | ||
``` | ||
In MainApplication.java : | ||
In MainApplication.java: | ||
``` | ||
```java | ||
import com.inprogress.reactnativeyoutube.ReactNativeYouTube; | ||
@@ -109,0 +110,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
486081
36
355
135
2