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.

height setting does not work

See original GitHub issue

height setting does not work

Swiper used default flex:1 ORZ… image

Version

{
  "name": "Cadaily",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.2.0",
    "react-native": "0.52.1",
    "react-native-swiper": "^1.5.13",
    "react-native-viewpager": "^0.2.13",
    "react-navigation": "^1.0.0-beta.27"
  },
  "devDependencies": {
    "babel-jest": "22.1.0",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.1.4",
    "react-test-renderer": "16.2.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

guess

Maybe it doesn’t work in react-navigation TabNavigator? I puted it into a tab

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

24reactions
honestxllcommented, Jan 26, 2018

I solved this by adding a container to Swiper and give the container a height.It works:)

0reactions
gatspycommented, Sep 28, 2018

yeah! view wrapper then setting height

Read more comments on GitHub >

github_iconTop Results From Across the Web

Css height in percent not working [duplicate] - Stack Overflow
You need to set a 100% height on all your parent elements, in this case your body and html. This fiddle shows it...
Read more >
Why is height not working?. Parent does not stretch to child's…
Parent does not stretch to child's height. I want height to be 100% of the viewport. Why is element overflowing even though I've...
Read more >
css - height % does not work - OutSystems
Height % is based on it's parent (so you have to set every element above the target element to 100%) , there are...
Read more >
Setting Height And Width On Images Is Important Again
To prevent layout shifts and improve performance scores, we need to always set width and height attributes on our images.
Read more >
Wrap text does not adjust row height in Excel - Microsoft Learn
Workaround. To adjust the height of the row to fit all the text in a cell, follow these steps: Select the row you...
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