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

The docs mention a hook useDimensions from @react-native-community/hooks. This hook does not exist. #3977

Closed
kimthompson opened this issue Jan 5, 2024 · 1 comment · Fixed by #3983

Comments

@kimthompson
Copy link

kimthompson commented Jan 5, 2024

Description

The React Native documentation around useWindowDimensions() contains the following line:

The useDimensions hook from the community React Native Hooks library aims to make handling screen/window size changes easier to work with.

That hook doesn't exist, and was apparently removed from the library in February of last year.

What is the problem?

I attempted to download useDimensions when I ran into a weird issue using useWindowDimensions (probably on our end) and discovered that it didn't exist. That was a little weird, so I thought I'd bring it up here.

How can we address it?

I think you can probably just delete this bullet point.

Why is it important?

I know it's a minor thing, but it was still a jarring thing to run into while following the documentation.

Who needs this?

All RN devs who might look into the useWindowDimensions() hook.

@lunaleaps
Copy link
Contributor

Thanks for reporting! I had no idea about this hooks library, would you like to submit a PR to remove it? We can probably remove it from all versions of the docs we have active.

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

Successfully merging a pull request may close this issue.

2 participants