React Native video player with alpha channel (alpha-packing) support.
Go to file
Brian Sztamfater 97d8c773ea fix: android resource id grabbing 2023-06-08 18:29:10 +01: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 fix: apply composition filter on main thread (iOS) 2023-05-15 21:33:01 -03:00
scripts chore: initial commit 2023-05-04 16:10:08 -03:00
src feat: improve example app with a parallax effect 2023-05-06 13:50:14 -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 readme typo 2023-05-13 01:22:50 -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

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