Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mybetterlifestory opened this issue Jul 10, 2022 · 1 comment

Comments

@mybetterlifestory
Copy link

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 (
      <Navigator />
    );
  } else {
    return (
      <AppLoading 
      startAsync = {getFonts} 
      onFinish = {() => 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);
@mybetterlifestory
Copy link
Author

I think i pass this error,
if someone getting that error, contact me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant