1.0.0-alpha.0 • Published 4 years ago

@exmg/livery-react-native v1.0.0-alpha.0

Weekly downloads
4
License
MIT
Repository
bitbucket
Last release
4 years ago

Livery components for React Native

This package provides components for using the Livery player with React Native.

Required credentials

To install this package, you'll need access to the following:

  • The Livery Jitpack repository for Android development. Request credentials from Livery, then place them in your Gradle user properties (~/.gradle/gradle.properties, create if necessary) as follows:
authToken=...
  • The Livery CocoaPods repository. Request credentials from Ex Machina, then place them in your ~/.netrc (create if necessary) as follows:
machine sdk-ios-binaries.liveryvideo.com
  login YOUR_USERNAME
  password YOUR_PASSWORD

Installation

Add the package as a dependency to your React Native project.

yarn add @exmg/livery-react-native

For React Native 0.59 and below, you also need to link the package.

react-native link @exmg/livery-react-native

For Android development, you need to add the Livery repository to your project build.gradle.

allprojects {
   repositories {
      //...
      google()
      jcenter()
      maven {
         url 'https://jitpack.io'
         credentials { username authToken }
      }
   }
}

For iOS development, you need to add the Livery repository to your ios/Podfile.

# Livery private repository
source 'https://github.com/exmg/livery-sdk-ios-podspec.git'
# Default CocoaPods repository
source 'https://cdn.cocoapods.org/'

Then (re)run CocoaPods:

cd ios/
pod install

Player usage

import Player from '@exmg/livery-react-native';

Now create a player anywhere in your app using a stream id.

const MyView = () => <Player streamId={'streamId'} />;
1.0.0-alpha.0

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago