wonday / react-native-live-stream

a react-native module for live stream play and publish
MIT License
89 stars 21 forks source link

requireNativeComponent: "RCTLivePlayer" was not found in the UIManager #14

Open domene96 opened 5 years ago

domene96 commented 5 years ago

`import React, {Component} from 'react'; import {Text, View, Button, Image, StyleSheet, Platform, NetInfo, Alert} from 'react-native'; import allStyles from '../css/allStylesCSS.js'; import Menu from './Menu'; // import Video from 'react-native-video'; // import MediaControls, { PLAYER_STATES } from 'react-native-media-controls'; import {LivePlayer} from "react-native-live-stream";

export default class Camaras extends Component { render() { return (

{ this.player = ref }} style={styles.backgroundVideo} paused={false} muted={false} bufferTime={300} maxBufferTime={1000} resizeMode={"contain"} onLoading={()=>{}} onLoad={()=>{}} onEnd={()=>{}} />
);

} }

const styles = StyleSheet.create({ backgroundVideo: { position: 'absolute', top: 0, left: 0, bottom: 0, right: 0 }, container: { flex: 1 }, toolbar: { marginTop: 30, backgroundColor: 'white', padding: 10, borderRadius: 5 }, mediaPlayer: { position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, backgroundColor: 'black' } }); `

vanhao-le commented 5 years ago

I have a same this problem, please help me fix it.

renatocassino commented 4 years ago

The same for me :/

brunoribeiro-lab commented 3 years ago

same insue

PedroPini commented 2 years ago

Same issue