How to use react-native-video - 10 common examples

To help you get started, we’ve selected a few react-native-video examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flow-typed / flow-typed / definitions / npm / react-native-video_v3.x.x / flow_v0.68.0- / test_react-native-video.js View on Github external
describe("public class methods", () => {
  var video = new Video();

  it("must create react element", () => {
    (video: React.ElementRef);
  });

  describe("seek", () => {
    it("seek must call with number ", () => {
      video.seek(1);

      // $ExpectError
      video.seek();
    });

    it("must call seek with number and tolerance IOS argument", () => {
      var toleranceIOS = 1;
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
describe('public class methods', () => {
  var video = new Video();

  it('should create react element', () => {
    (video: React.ElementRef);
  });

  describe('seek', () => {
    it('seek should call with number ', () => {
      video.seek(1);

      // $ExpectError
      video.seek();
    });

    it('should call seek with number and tolerance IOS argument', () => {
      var toleranceIOS = 1;
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
it('raises an error when overwrite some value', () => {
    // $ExpectError - read-only
    FilterType.SEPIA = '123';

    // $ExpectError - exact type
    FilterType.SEPIAXXX = '123';
  });
});
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
it('raises an error when overwrite some value', () => {
    // $ExpectError - read-only
    TextTrackType.TTML = '123';

    // $ExpectError - exact type
    TextTrackType.TTMLXXX = '123';
  });
});
github pct-org / native-app / app / modules / SubtitlesManager.js View on Github external
Object.keys(foundSubtitles).forEach((langCode) => {
      const sub = foundSubtitles[langCode]

      subs.push({
        title   : sub.lang,
        language: sub.langcode,
        type    : TextTrackType.VTT, // "text/vtt"
        uri     : sub.vtt,
      })
    })
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
it('should has values', () => {
    (FilterType.NONE: '');
    (FilterType.INVERT: 'CIColorInvert');
    (FilterType.MONOCHROME: 'CIColorMonochrome');
    (FilterType.POSTERIZE: 'CIColorPosterize');
    (FilterType.FALSE: 'CIFalseColor');
    (FilterType.MAXIMUMCOMPONENT: 'CIMaximumComponent');
    (FilterType.MINIMUMCOMPONENT: 'CIMinimumComponent');
    (FilterType.CHROME: 'CIPhotoEffectChrome');
    (FilterType.FADE: 'CIPhotoEffectFade');
    (FilterType.INSTANT: 'CIPhotoEffectInstant');
    (FilterType.MONO: 'CIPhotoEffectMono');
    (FilterType.NOIR: 'CIPhotoEffectNoir');
    (FilterType.PROCESS: 'CIPhotoEffectProcess');
    (FilterType.TONAL: 'CIPhotoEffectTonal');
    (FilterType.TRANSFER: 'CIPhotoEffectTransfer');
    (FilterType.SEPIA: 'CISepiaTone');
  });
github flow-typed / flow-typed / definitions / npm / react-native-video_v3.x.x / flow_v0.68.0- / test_react-native-video.js View on Github external
it("must has values", () => {
    (TextTrackType.SRT: "application/x-subrip");
    (TextTrackType.TTML: "application/ttml+xml");
    (TextTrackType.VTT: "text/vtt");
  });
});
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
it('should has values', () => {
    (TextTrackType.SRT: 'application/x-subrip');
    (TextTrackType.TTML: 'application/ttml+xml');
    (TextTrackType.VTT: 'text/vtt');
  });
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
it('should has values', () => {
    (FilterType.NONE: '');
    (FilterType.INVERT: 'CIColorInvert');
    (FilterType.MONOCHROME: 'CIColorMonochrome');
    (FilterType.POSTERIZE: 'CIColorPosterize');
    (FilterType.FALSE: 'CIFalseColor');
    (FilterType.MAXIMUMCOMPONENT: 'CIMaximumComponent');
    (FilterType.MINIMUMCOMPONENT: 'CIMinimumComponent');
    (FilterType.CHROME: 'CIPhotoEffectChrome');
    (FilterType.FADE: 'CIPhotoEffectFade');
    (FilterType.INSTANT: 'CIPhotoEffectInstant');
    (FilterType.MONO: 'CIPhotoEffectMono');
    (FilterType.NOIR: 'CIPhotoEffectNoir');
    (FilterType.PROCESS: 'CIPhotoEffectProcess');
    (FilterType.TONAL: 'CIPhotoEffectTonal');
    (FilterType.TRANSFER: 'CIPhotoEffectTransfer');
    (FilterType.SEPIA: 'CISepiaTone');
  });
github flow-typed / flow-typed / definitions / npm / react-native-video_v4.x.x / flow_v0.77.0- / test_react-native-video.js View on Github external
it('should has values', () => {
    (FilterType.NONE: '');
    (FilterType.INVERT: 'CIColorInvert');
    (FilterType.MONOCHROME: 'CIColorMonochrome');
    (FilterType.POSTERIZE: 'CIColorPosterize');
    (FilterType.FALSE: 'CIFalseColor');
    (FilterType.MAXIMUMCOMPONENT: 'CIMaximumComponent');
    (FilterType.MINIMUMCOMPONENT: 'CIMinimumComponent');
    (FilterType.CHROME: 'CIPhotoEffectChrome');
    (FilterType.FADE: 'CIPhotoEffectFade');
    (FilterType.INSTANT: 'CIPhotoEffectInstant');
    (FilterType.MONO: 'CIPhotoEffectMono');
    (FilterType.NOIR: 'CIPhotoEffectNoir');
    (FilterType.PROCESS: 'CIPhotoEffectProcess');
    (FilterType.TONAL: 'CIPhotoEffectTonal');
    (FilterType.TRANSFER: 'CIPhotoEffectTransfer');
    (FilterType.SEPIA: 'CISepiaTone');
  });