Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

585
Views
React Native, undefined no es un objeto (evaluando '_reactNative.Image.propTypes.resizeMode')

Estoy tratando de renderizar video en un componente React Native usando react-native-video v5.2.0 . Recibo el siguiente error. Estoy usando la CLI nativa de reacción en OSX. La aplicación falla al intentar importar la biblioteca, línea:

 import Video from 'react-native-video';

El error:

 Uncaught Error undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode')

Captura de pantalla:

ingrese la descripción de la imagen aquí

El código:

 import React from 'react'; import {View, Text} from 'react-native'; import styles from './styles'; import Video from 'react-native-video'; const Post = () => { return ( <> <View style={styles.container}> <Text>Post</Text> <Video source={{ uri: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4', }} // Can be a URL or a local file. ref={ref => { this.player = ref; }} // Store reference onBuffer={this.onBuffer} // Callback when remote video is buffering onError={this.videoError} // Callback when video cannot be loaded style={styles.video} /> </View> </> ); }; export default Post;
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Según este problema de GitHub, actualizar la versión de react-native-video a "^6.0.0-alpha.1" resolvería el problema:

 npm i react-native-video@6.0.0-alpha.1

No dude en leer la discusión allí si no funciona para usted.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!