React Native video player with alpha channel (alpha-packing) support.
Go to file
Brian Sztamfater e1d58901e1 feat: add loop property for iOS 2023-08-15 13:21:03 -03:00
.github chore: initial commit 2023-05-04 16:10:08 -03:00
android fix: android resource id grabbing 2023-06-08 18:29:10 +01:00
example fix: use accelerometer sensor on parallax effect 2023-06-05 16:59:18 +01:00
ios feat: add loop property for iOS 2023-08-15 13:21:03 -03:00
scripts chore: initial commit 2023-05-04 16:10:08 -03:00
src feat: add loop property for iOS 2023-08-15 13:21:03 -03:00
.editorconfig chore: initial commit 2023-05-04 16:10:08 -03:00
.gitattributes chore: initial commit 2023-05-04 16:10:08 -03:00
.gitignore chore: initial commit 2023-05-04 16:10:08 -03:00
.nvmrc chore: initial commit 2023-05-04 16:10:08 -03:00
.watchmanconfig chore: initial commit 2023-05-04 16:10:08 -03:00
.yarnrc chore: initial commit 2023-05-04 16:10:08 -03:00
CODE_OF_CONDUCT.md chore: initial commit 2023-05-04 16:10:08 -03:00
CONTRIBUTING.md chore: initial commit 2023-05-04 16:10:08 -03:00
LICENSE chore: initial commit 2023-05-04 16:10:08 -03:00
README.md Update README.md 2023-06-14 09:22:26 -03:00
babel.config.js chore: initial commit 2023-05-04 16:10:08 -03:00
lefthook.yml chore: initial commit 2023-05-04 16:10:08 -03:00
package.json feat: implement component iOS bridge and demo app example 2023-05-04 16:11:57 -03:00
react-native-transparent-video.podspec feat: implement component iOS bridge and demo app example 2023-05-04 16:11:57 -03:00
tsconfig.build.json chore: initial commit 2023-05-04 16:10:08 -03:00
tsconfig.json chore: initial commit 2023-05-04 16:10:08 -03:00
yarn.lock feat: implement component iOS bridge and demo app example 2023-05-04 16:11:57 -03:00

README.md

react-native-transparent-video

React Native video player with alpha channel (alpha-packing) support. It works on iOS and Android.

Example of a mp4 video with alpha-packing:

https://github.com/status-im/react-native-transparent-video/assets/18485527/69ea988e-0c7d-4123-84a1-1ca46b61994e

Recommendations

To achieve best compatibility across different Android devices and versions, please check the video encoding recommendations from the Android documentation portal.

Installation

npm install react-native-transparent-video

or

yarn add react-native-transparent-video

Usage

import TransparentVideo from 'react-native-transparent-video';

const video = require('../assets/video.mp4');

function App() {
  return (
    <View>
      <TransparentVideo source={video} style={styles.transparentVideo} />
    </View>
  );
}

const styles = StyleSheet.create({
  transparentVideo: {
    position: 'absolute',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
  },
});

Contributing

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

Recognition

Special thanks to:

License

MIT