Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Not work with GestureHandlerRootView on web #53

Closed
1280103995 opened this issue May 26, 2022 · 4 comments
Closed

Not work with GestureHandlerRootView on web #53

1280103995 opened this issue May 26, 2022 · 4 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@1280103995
Copy link

Thanks your template 👏 👏 👏

Describe the bug

  1. i run yarn add react-native-reanimated.
  2. according to the react-native-gesture-handler installation documentation to use GestureHandlerRootView, then the page is blank on the web.

src/index.js

import 'react-native-gesture-handler';
...

App.tsx

import {GestureHandlerRootView} from 'react-native-gesture-handler';
...

const TabbedApp = () => {
  return (
    <SafeAreaProvider initialMetrics={initialWindowMetrics}>
      <GestureHandlerRootView style={{flex: 1}}>    // add
        <NavigationContainer>
          <TopTabNavigator />
        </NavigationContainer>
      </GestureHandlerRootView>                     // add
    </SafeAreaProvider>
  );
};

To Reproduce
Use default template

Expected behavior
These popular libraries should work fine on the web, no?

@LunatiqueCoder
Copy link
Owner

Hello @1280103995 . Thank you for trying my template and for raising this issue.

Indeed, these popular libraries should work well in the web. There might also be the case that for the web there would be needed some certain styles to display your view.

Unfortunately, I don't think I will have time until the weekend to have a look at it. If you resolve the issue in the meantime, I would appreciate if you come back here with an answer.

Thank you! 🙏

@LunatiqueCoder LunatiqueCoder self-assigned this May 26, 2022
@LunatiqueCoder LunatiqueCoder added bug Something isn't working good first issue Good for newcomers labels May 26, 2022
@LunatiqueCoder
Copy link
Owner

LunatiqueCoder commented May 26, 2022

@1280103995
Copy link
Author

Thanks, the new version works fine.

@LunatiqueCoder
Copy link
Owner

Please use v1.2.8.

In v1.2.7, I managed to introduce a small bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants