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

Get Dimension of component #74

Open
1-Harshit opened this issue Oct 11, 2021 · 1 comment
Open

Get Dimension of component #74

1-Harshit opened this issue Oct 11, 2021 · 1 comment

Comments

@1-Harshit
Copy link
Contributor

Need a way to get the height of a component. To fix hardcoded values of History components
pushed in #72 against issue #44

@1-Harshit 1-Harshit changed the title Get Dimention of compoenent Get Dimention of component Oct 11, 2021
@1-Harshit 1-Harshit changed the title Get Dimention of component Get Dimension of component Oct 16, 2021
@1-Harshit
Copy link
Contributor Author

onLayout={({
  nativeEvent: {
    layout: { width },
  },
}: LayoutChangeEvent) => setContainerWidth(width)}

found this somewhere idk if it will work tho. Also, width is state hence will make component state full

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