Open stefunlive0 opened 2 weeks ago
Hey @stefunlive0! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro.
The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.
You can provide a repro using any of the following:
GitHub repo under your username
A snack link is preferred since it's the easiest way to both create and share a repro. If it's not possible to create a repro using a snack, link to a GitHub repo under your username is a good alternative. Don't link to a branch or specific file etc. as it won't be detected.
Try to keep the repro as small as possible by narrowing down the minimal amount of code needed to reproduce the issue. Don't link to your entire project or a project containing code unrelated to the issue. See "How to create a Minimal, Reproducible Example" for more information.
You can edit your original issue to include a link to the repro, or leave it as a comment. The issue will be closed automatically after a while if you don't provide a repro.
Couldn't find version numbers for the following packages in the issue:
@react-navigation/native
@react-navigation/drawer
@react-navigation/material-top-tabs
react-native-tab-view
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
It's updated
@stefunlive0 I ran npm install instead of npx expo install and one extra step from documentation,
npx expo install react-native-gesture-handler react-native-reanimated
Please try this if it helps.
`// import 'react-native-gesture-handler' import { createDrawerNavigator } from "@react-navigation/drawer"; import { NavigationContainer } from "@react-navigation/native"; import { createNativeStackNavigator } from "@react-navigation/native-stack"; import { Button, StyleSheet, Text, View } from "react-native";
function HomeScreen() { return ( <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
</View>
); }
function NotificationsScreen({ navigation }) { return ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Button onPress={() => navigation.goBack()} title="Go back home" /> ); }
const Drawer = createDrawerNavigator();
export default function App() { return (
); }
const Stack = createNativeStackNavigator();
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#fff", alignItems: "center", justifyContent: "center", }, text: { display: "flex", backgroundColor: "red", height: "1000px", color: "black", }, btn: { width: "100px", height: "100px", backgroundColor: "red", }, }); ` I am using expo to run the app.
@stefunlive0 I ran npm install instead of npx expo install and one extra step from documentation,
npx expo install react-native-gesture-handler react-native-reanimated
Please try this if it helps.
`// import 'react-native-gesture-handler' import { createDrawerNavigator } from "@react-navigation/drawer"; import { NavigationContainer } from "@react-navigation/native"; import { createNativeStackNavigator } from "@react-navigation/native-stack"; import { Button, StyleSheet, Text, View } from "react-native";
function HomeScreen() { return ( <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}> Home Screen ); }
function NotificationsScreen({ navigation }) { return ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Button onPress={() => navigation.goBack()} title="Go back home" /> ); }
const Drawer = createDrawerNavigator();
export default function App() { return (
</Drawer.Navigator> ); } const Stack = createNativeStackNavigator();
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#fff", alignItems: "center", justifyContent: "center", }, text: { display: "flex", backgroundColor: "red", height: "1000px", color: "black", }, btn: { width: "100px", height: "100px", backgroundColor: "red", }, }); ` I am using expo to run the app.
Hello I have this error : Android Bundling failed 29987ms (C:\Users\My-User\Desktop\Projet01\node_modules\expo\AppEntry.js) Unable to resolve "@react-navigation/drawer" from "App.jsx"
I think that
import { createDrawerNavigator } from "@react-navigation/drawer";
creates the error.
I need to add this :
import 'react-native-gesture-handler'
?
I used also this :
npx expo install react-native-gesture-handler react-native-reanimated
Current behavior
I would like to launch an app on Expo (Android Studio Giraffe) but I have this error
Please can you solve the bug in my code ? :
Thanks in advance
Expected behavior
Normally it works every time when I test new React component. I don't undestand where is the problem
Reproduction
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAKjgQwM5wEoFNkGN4BmUEIcA5FDvmQNwBQokscA3nAEICuMMEAdgBo4ANWBYA7kIAqWAB7wAvnCIlylPDAC0fZDGAA3LLQbho8NgDlk+4AHNdwfgGF+MZMD5YocJStJkAAXV8bWs7B34Aeh09Q2NGM1Y4XHUYLABlN1wAaysbe15vX2J-IKotHXyIvkjULOz402Y2FJw09ggeEilkACM88MKfZRLyMo1Qqr0o3s7eEE03XtRGpnNk1KwAEShkcS8BguhhvzHgirCCxxqAE139qGM6Ak4+fGu4AAkSDNasPgAFGBiGBUABKVh0O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