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.

The first SceneView's height is not full

See original GitHub issue

Environment

Package Version
expo 45.0.5
react 17.0.2
react-native 0.68.2
react-native-tab-view 3.1.1
react-native-pager-view 5.4.15
node 16.13.2
yarn 1.22.10
@react-navigation/native 6.0.10
@react-navigation/native-stack 6.6.2

Description

In my case, if the TabView be wrapped in the NavigationContainer which exported from @react-navigation/native, the first route has a bottom blank.

And I debug the element tree by react-native-debugger, found that the first SceneView’s height is incorrectly.

Jun-12-2022 23-26-22

Reproducible Demo

https://snack.expo.dev/@blucas/bottom-blank

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:8

github_iconTop GitHub Comments

13reactions
wqcstrongcommented, Jun 12, 2022

As anyone like me may face the issue, here is a temporary solution:

<TabView
  navigationState={{ index, routes }}
  onIndexChange={setIndex}
  initialLayout={{ width: layout.width }}
+ sceneContainerStyle={{ overflow: 'visible' }}
  ....
/>
0reactions
EricBorlandcommented, Oct 26, 2022

v5.4.25 did work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sceneview Camera Node full screen - Stack Overflow
I've managed to set the scene view to fit the full screen, ... CGFloat screenHeight = screenRect.size.height; aFrame.size.width ...
Read more >
Screen.height returns size of the scene view!? - Unity Forum
I'm working some code that is executed in-editor (while not playing), ... the entire editor window as a starting point for it's dimensions, ......
Read more >
SceneView | API Reference | ArcGIS Maps SDK for JavaScript ...
For a map to be visible to the user in the DOM, a SceneView must have both a valid Map instance and a...
Read more >
Place an image on a plane at the l… | Apple Developer Forums
physicalSize.height) let planeNode = SCNNode(geometry: plane) ... { let touch = touches.first! let location = touch.location(in: sceneView) if !
Read more >
Camera.pixelHeight - Scripting API - Unity - Manual
How tall is the camera in pixels (not accounting for dynamic resolution scaling) (Read Only). Use this to return the height of the...
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