Have ideas to improve npm?Join in the discussion! »

    @blabber/ya-react-native-video-player
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.0 • Public • Published

    ya-react-native-video-player

    Getting started

    $ npm install @blabber/ya-react-native-video-player --save

    or

    $ yarn add @blabber/ya-react-native-video-player

    Mostly automatic installation

    $ react-native link @blabber/ya-react-native-video-player

    Manual installation

    iOS

    1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
    2. Go to node_modules@blabber/ya-react-native-video-player and add YAReactNativeVideoPlayer.xcodeproj
    3. In XCode, in the project navigator, select your project. Add libYAReactNativeVideoPlayer.a to your project's Build PhasesLink Binary With Libraries
    4. Run your project (Cmd+R)<

    Android

    1. Open up android/app/src/main/java/[...]/MainActivity.java
    • Add import mc.blabber.yareactnative.videoplayer.YAReactNativeVideoPlayerPackage; to the imports at the top of the file
    • Add new YAReactNativeVideoPlayerPackage() to the list returned by the getPackages() method
    1. Append the following lines to android/settings.gradle:
      include ':yareact-native-video-player'
      project(':react-native-video-player').projectDir = new File(rootProject.projectDir, 	'../node_modules/@blabber/yareact-native-video-player/android')
      
    2. Insert the following lines inside the dependencies block in android/app/build.gradle:
        compile project(':yareact-native-video-player')
      

    Usage

    import YAReactNativeVideoPlayer from '@blabber/ya-react-native-video-player';
     

    See examples/basic for usage of this component.

    Install

    npm i @blabber/ya-react-native-video-player

    DownloadsWeekly Downloads

    43

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    891 kB

    Total Files

    36

    Last publish

    Collaborators

    • avatar
    • avatar