Video component for react native project that is useful to render `<Video>` from [react-native-video](https://github.com/react-native-video/react-native-video) on web browser.
npm install @creationdose/react-native-web-video> Video component for react native project that is useful to render from react-native-video on web browser.
$ npm i @creationdose/react-native-web-video
Alias the package in your webpack config:
resolve: {
alias: {
'react-native': 'react-native-web',
...
'react-native-video': '@creationdose/react-native-web-video',
}
}
addons: [
...
{
name: '@storybook/addon-react-native-web',
options: {
modulesToTranspile: ['@creationdose/react-native-web-video'],
modulesToAlias: {
'react-native-video': '@creationdose/react-native-web-video',
},
},
},
]
Actually the only element's attributes mapped to work allineate with RN-Video component are:
- src
- style
- loop
- onError
- onLoadedData
- onLoadStart
- autoPlay
- muted