I try to code a cross-platform app using React. I'm using React.js for web app and React Native for Android devices, IOS devices, ...
Inside my app, I want to insert a video and for my web app it works well but when I try to run my app on Android device, I get the following error :
Failed building JavaScript bundle.The package at "node_modules/imsc/node_modules/sax/lib/sax.js" attempted to import the Node standard library module "stream". It failed because the native React runtime does not include the Node standard library. Read more at https://docs.expo.io/workflow/using-libraries/#using-third-party-libraries
I installed react-native-stream but nothing changes.Here is my Native code for the Video component :
import React from 'react';import {View} from "react-native"import Video from 'react-native-video';export const VideoComponent: React.FC= ( ) => { return(<View><Video source="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4" /></View> )}
I'm using expo for my project and I install dependencies with yarn.
Thank for your help,