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

355
Views
Dando error: intentar cambiar el captador de una propiedad no configurable en React native

Estoy trabajando en el proyecto en react-native pero esto arroja un error

Intentar cambiar el getter de una propiedad no configurable

 import * as React from 'react'; import { Text, View, StyleSheet } from 'react-native'; import 'react-native-gesture-handler'; import { createStackNavigator } from '@react-navigation/stack'; import { NavigationContainer } from '@react-navigation/native'; import LogInScreen from './screens/loginScreen'; import SignUpScreen from './screens/singupScreen'; import ActivitiesScreen from './screens/activitiesScreen'; import StackNavigator from './navigation/WelcomeStackNavigation'; import StackNavigator2 from './navigation/Stack2'; import { AppLoading } from 'expo'; import { createAppContainer, createSwitchNavigator } from 'react-navigation'; function App() { return ( <NavigationContainer> </NavigationContainer> ); } export default App;

Cuando elimina el fragmento de código que es ' import { createAppContainer, createSwitchNavigator } from 'react-navigation'; ' Entonces, el error no se mostrará. Si lo vuelves a insertar, aparecerá el error.

Puede consultar el archivo package.json:

 { "dependencies": { "firebase": "7.9.0", "react-is": "^16.8.0", "expo-font": "~8.4.0", "@firebase/app": "0.x.0", "styled-system": "*", "react-native-svg": "12.1.0", "react-navigation": "4.4.1", "styled-components": "*", "@firebase/app-types": "0.x.0", "@firebase/firestore": "*", "react-native-screens": "~2.15.2", "@react-navigation/stack": "^5.14.4", "react-native-reanimated": "~1.13.0", "@react-navigation/native": "^5.9.4", "react-native-size-matters": "*", "react-native-gesture-handler": "~1.8.0", "react-native-safe-area-context": "3.1.9", "react-native-floating-label-input": "*", "@react-native-community/masked-view": "0.1.10" } }

Estoy confundido.

Puedes consultar este snack

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Mezclas @react-navigation/native y react-navigation.

Cambie su importación de la siguiente manera:

 import { createAppContainer, createSwitchNavigator } from '@react-navigation/native';
about 4 years ago · Juan Pablo Isaza Report

0

Estaba recibiendo el mismo error. Acabo de cambiar a la versión 43 de la exposición en snack y luego extraje el archivo en VSC, y funcionó.

about 4 years ago · Juan Pablo Isaza 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!