Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Fixes Issue #108 #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

BlackJohnny
Copy link

No description provided.

@BlackJohnny BlackJohnny changed the title Fixes https://github.com//issues/108 Fixes #108 Oct 30, 2019
@BlackJohnny BlackJohnny changed the title Fixes #108 Fixes Issue #108 Oct 30, 2019
@BlackJohnny
Copy link
Author

Fixes Issue #108

@BlackJohnny
Copy link
Author

Any feedback on this? The issue is happening always, it is not just a side effect of some exotic use case.

@satya164
Copy link
Member

Sorry I'm on holidays. Will check soon

@satya164
Copy link
Member

Hey! Can you provide a way repro #108? In the drawer code, the drawer opacity is set to 0 until we have the drawer width. It shouldn't be visible until the measurement is complete. So I'm not really sure how the PR addresses the issue.

@BlackJohnny
Copy link
Author

Hey! Can you provide a way repro #108? In the drawer code, the drawer opacity is set to 0 until we have the drawer width. It shouldn't be visible until the measurement is complete. So I'm not really sure how the PR addresses the issue.

It is indeed set to 0 however when the layout event is called, the opacity as well as the position are updated, however the order is random and if the opacity goes to 1 before updating the drawer position, we get the flicker.

@alimek
Copy link

alimek commented Dec 16, 2019

Just checked this fix and it's not fixing problem of flickering for me:

export default createDrawerNavigator(
  {
    BottomTabNavigation,
  },
  {
    drawerType: 'slide',
    drawerPosition: 'left',
    drawerWidth: Math.round(windowWidth * 0.85),
    contentComponent: DrawerContent,
    edgeWidth: -100,
  },
);

@github-actions
Copy link

Hello 👋, this pull request has been open for more than 2 months with no activity on it. If you think this is still necessary with the latest version, please comment and ping a maintainer to get this reviewed, otherwise it will be closed automatically in 7 days.

@github-actions github-actions bot added the Stale label Feb 15, 2020
@satya164 satya164 removed the Stale label Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants