React Native video player with alpha channel (alpha-packing) support.
Go to file
Devin Haska b22998c398
feat: update `style` prop to use `StyleProp` instead of `ViewStyle` (#6)
Co-authored-by: Devin Lumley <2636402+devinwl@users.noreply.github.com>
2023-10-17 15:22:12 -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 (#3) 2023-08-15 13:25:28 -03:00
scripts chore: initial commit 2023-05-04 16:10:08 -03:00
src feat: update `style` prop to use `StyleProp` instead of `ViewStyle` (#6) 2023-10-17 15:22:12 -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 fix: update README with correct package name (#4) 2023-08-15 13:43:59 -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 @status-im/react-native-transparent-video

or

yarn add @status-im/react-native-transparent-video

Usage

import TransparentVideo from '@status-im/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