iamshaunjp / iamshaunjp/react-native-tutorial

Error: Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager.

Aperta
#28 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
605
Fork
499
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

While i followed the project in lesson 20, i got this error..
Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager.

All of my file is the same, what did i do wrong?

My App.js file:
```
import { useState } from 'react';
import * as Font from 'expo-font';
import AppLoading from 'expo-app-loading';
import Navigator from './routes/homeStack';

const getFonts = () => Font.loadAsync({
'eduSABeginner-regular': require('./assets/fonts/EduSABeginner-Regular.ttf'),
'eduSABeginner-bold': require('./assets/fonts/EduSABeginner-Bold.ttf')
});

export default function App() {
const [fontsLoaded, setFontsLoaded] = useState(false);

if (fontsLoaded) {
return (

);
} else {
return (
setFontsLoaded(true)}
onError={() => console.log('error')} />
)
}
}
```

My homeStack.js file:
```
import { createStackNavigator } from "react-navigation-stack";
import {createAppContainer} from "react-navigation";
import HomePage from '../screens/HomePage';
import ReviewDetails from "../screens/ReviewDetails";

const screens = {
HomePage: {
screen: HomePage,
},
ReviewDetails: {
screen: ReviewDetails,
}
};

const HomeStack = createStackNavigator(screens);
export default createAppContainer(HomeStack);
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.