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

173
Views
TypeError: Cannot read properties of undefined (reading 'urlToPathAndParams')

I've just start learning react native and I tried to make a navigation with react-navigation. The problem is I am getting this error and I don't know what to do. I have checked other answers which did not work for me.

My code: App.js

import React from 'react';
import { Button, SectionList, StyleSheet, View, Text, TextInput } from 'react-native';
import Constants from 'expo-constants';
import { createSwitchNavigator, createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';

import Login from "./Login"
import AppNavigator from './Navigation';

export default class App extends React.Component {
  state = {

  }

  render() {
    return (
      <AppNavigator />
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Navigation.js

import React from 'react';
import { Button, SectionList, StyleSheet, View, Text, TextInput } from 'react-native';
import Constants from 'expo-constants';
import { createSwitchNavigator, createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import Login from "./Login"

const AuthNavigator = createSwitchNavigator({
    Login: Login
  })
  
const AppNavigatorStack = createSwitchNavigator({
    Auth: AuthNavigator
})
  
const AppNavigator = createAppContainer(AppNavigatorStack)

export default AppNavigator;

Login.js

import React from 'react';
import { Button, SectionList, StyleSheet, View, Text, TextInput } from 'react-native';
import Constants from 'expo-constants';

export default class Login extends React.Component {

render() {
    return (
        <View>
            <Text>
                test
            </Text>
        </View>
    )
}
about 4 years ago · Juan Pablo Isaza
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!