Open krishanjangir opened 5 years ago
@VikAdvani
Could you please check above issue ?
You have <ViroVideo width={videoWdith} ... />
vs. <ViroVideo width={videoWidth} ... />
.
Might be a typo issue? I wonder if the reference error is failing silently causing the app to crash.
my app is also crashing code is below-:
import React, { useState } from 'react'; import { StyleSheet } from 'react-native'; import { ViroARScene, ViroText, ViroConstants, ViroARSceneNavigator, ViroNode, ViroSphere, Viro3DObject, ViroAmbientLight, ViroScene, ViroImage, ViroFlexView, Viro360Image, Viro360Video, ViroAnimatedImage, ViroAnimations, ViroBox, ViroARImageMarker, ViroARPlane, ViroARPlaneSelector, ViroButton, ViroCamera, ViroDirectionalLight, ViroVideo } from '@viro-community/react-viro';
const InititalScene = () => {
return (
<ViroARScene >
<ViroFlexView
backgroundColor="#fff"
width={0.5}
height={0.2}
opacity={1}
>
<ViroVideo
source={require('./m.mp4')}
loop={true}
position={[0, 0, -5]}
/>
</ViroFlexView>
</ViroARScene>
); }
export default () => { return ( <ViroARSceneNavigator initialScene={{ scene: InititalScene }} style={{ flex: 1 }} /> ); };
var styles = StyleSheet.create({
});
If "ViroVideo" is Wrappedup in "ViroNode" it's working but if the "ViroVideo" is wrapped up in "ViroFlexView" application is crashing -
Below Code is working
Below is crashing