Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

Unable to resolve module @react-navigation/native @react-navigation/native could not be found within the project or in these directories:

$
0
0

the error:Error: Unable to resolve module @react-navigation/native from D:\react-native-practice\app1\App.tsx: @react-navigation/native could not be found within the project or in these directories:

error

my code:

import React from "react";import { View, Text, StyleSheet, ScrollView, SafeAreaView, TextInput, TouchableOpacity } from "react-native";import { useNavigation } from '@react-navigation/native';import Icon from 'react-native-vector-icons/FontAwesome';import Ionicons from 'react-native-vector-icons/Ionicons';import Button from './components/Button';import InputFeild from './components/InputFeild';const App = () =>{    const navigation = useNavigation();    return(<SafeAreaView style={styles.container}><View style={styles.emptyProfile}><Ionicons name="person-outline"  size={50}/></View><View style={styles.inputFeilds}><InputFeild name="user_name" banner="at-outline" secutiry={false}/><InputFeild name="password" banner="lock-closed-outline" secutiry={true}/></View><View style={styles.actions}><Button buttonIcon="log-in-outline" text="Sign In" buttonActivated={true}/><Button buttonIcon="person-add-outline" text="New user? Sign Up" buttonActivated={false}                     onPress={() => {                    }}                /></View></SafeAreaView>    );};export default App;

Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>