New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-video-picker-android

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-video-picker-android

A React Native package that allows you to select single or multiple videos from Android device library with support for compression. A common use case is to compress videos and optimize the file size before uploading them to the server.

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

react-native-video-picker-android

A React Native package that allows you to select single or multiple videos from Android device library with support for compression. A common use case is to compress videos and optimize the file size before uploading them to the server.

Installation

npm install react-native-video-picker-android
yarn add react-native-video-picker-android

Usage

// react-native.config.js
module.exports = {
  dependencies: {
    'react-native-video-picker-android': {
      platforms: {
        ios: null,
      },
    },
  },
};
import { pickVideo } from 'react-native-video-picker-android';
// ...
try {
  const uris: string[] = await pickVideo({
    maxFileSize: 1024 * 1000000,
    multiple: false,
    compress: true,
    onProgress: (prog) => {
      setProgress(prog);
    },
    quality: 'high',
    lowerBoundForCompress: 70 * 1000000,
    duration: 300,
  });
  console.log('---- pickVideo() success ', uris);
} catch (err) {
  console.log('---- pickVideo() error ', err, (err as any)?.code);
}

Run Example Project

yarn example android

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Made with create-react-native-library

Keywords

react-native

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts