question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dimensions - with-react-native-web - example

See original GitHub issue

The tag is not working properly Dimensions

import { Dimensions } from 'react-native'

const win = Dimensions.get('window')
const w = win.width

For example, the width of an iPhone is 980, but it’s not like that

2018-05-23 22 57 04

System information

  • OS: [macOS]
  • Browser (if applies) [All]
  • Version of Next.js: [6.0.3]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timneutkenscommented, May 23, 2018

Already merged it! Thank you very much 🙌

1reaction
timneutkenscommented, May 23, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Dimensions - React Native
You can get the application window's width and height using the following code: const windowWidth = Dimensions.get('window').width;
Read more >
Dimensions // React Native for Web - GitHub Pages
The height of the dimension. width: number. The width of the dimension. Examples ...
Read more >
Dimensions: are window measurements correct? · Issue #453
In my case I'm using this lib : https://github.com/ladas-larry/react-native-responsive-image#readme, which requires an actual screen width value ...
Read more >
Screen width in React Native - Stack Overflow
In React-Native we have an Option called Dimensions. Include Dimensions at the top var where you have include the Image,and Text and other...
Read more >
React Native Dimensions - To Get Device Height Width in ...
React Native Dimensions. Here is an Example to Get Device Height Width on Button Click in React Native. · Import Dimensions. import {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found