Comments (7)
Hm, this is probably because NavigationBar is positioned absolute, so it doesn't affect layout. We use it as navigationBar
component in Navigator
, so we didn't notice this issue yet. Could you, please, try this:
<NavigationBar style={{ container: { zIndex: 1 } }}
centerComponent={<Title>TITLE</Title>}
/>
This will make NavigationBar
rendered at the top of Image
.
Also, I think we should introduce styleName="inline"
for NavigationBar
which would render NavigationBar
with position relative
.
from ui.
cc @ekhall
from ui.
Thanks man - that works in as much as it positions it higher, although content is still positioned behind it. I believe that's what you're referring to with your last point. Would be super if it was positioned relatively (as I imagine you're pointing out, inline as a styleName doesn't work yet).
Really like these components - thank you and please let me know if I can troubleshoot/help any further.
from ui.
Had the same issue here. End up adding a paddingTop on the Screen
component
<Screen
style={{ paddingTop: 70 }}
>
<NavigationBar
centerComponent={<Title>My Title</Title>}
/>
<ListView
data={this.data()}
renderRow={this.rows}
/>
</Screen>
What do you think in create a styleName
named navigation-bar
for Screen component?
@SoHotSoup
from ui.
Hey @guilhermedecampo! Sorry for late response, I believe that better option would be to add new styleName
for NavigationBar
which would define it as inline
. Something like this:
'.inline': {
width: window.width,
position: 'relative',
}
Maybe zIndex
should be defined as well, because it may be covered by ScrollView
content.
That should be enough. Could I ask you to submit PR for it?
from ui.
For sure @SoHotSoup
from ui.
from ui.
Related Issues (20)
- How do I make the example UI in the doc with shoutem ListView?
- Cannot install @shoutem/ui HOT 1
- React/RCTViewManager.h file not found
- unable to install HOT 9
- [Expo project] BVLinearGradient was not found in uimanager HOT 1
- Getting an error in Android Studio "Caused by: java.lang.Exception: internal/modules/cjs/loader.js:983 throw err; ^Error: Cannot find module 'react-native/cli'" #1121
- StatusBar style fixing HOT 1
- Unable to resolve "warnOnce" from "node_modules/@shoutem/ui/node_modules/react-native/Libraries/react-native/react-native-implementation.js" HOT 8
- Wrong onEndReachedThreshold for ListView
- DropDownMenu given 2 items in list the last items is transparent
- Android Not compiling with Shoutem UI HOT 3
- I had to remove a react-native-photo-view which links to the github of shoutem from the dependency to fix a com.facebook.imagepipeline.cache.CountingMemoryCacheInspector duplicated class error
- Error: Unable to resolve module `@shoutem/ui;` | @shoutem/ui; could not be found within the project
- Navigation bar issue with notch on iPhone 12
- Inherited view properties are not correctly assigned on some components
- Icon must be an SVG file imported as a React component. HOT 1
- Why I'm getting this error message HOT 1
- All icons throw `Icon with name "____" not found within the provided set.` HOT 3
- Module not found: Can't resolve './ImageGallery' HOT 1
- Not support latest version of React HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.