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

覆盖导航栏问题 #33

Open
qxj006 opened this issue Apr 10, 2019 · 10 comments
Open

覆盖导航栏问题 #33

qxj006 opened this issue Apr 10, 2019 · 10 comments

Comments

@qxj006
Copy link

qxj006 commented Apr 10, 2019

如题,header会直接覆盖在导航栏上

@qxj006
Copy link
Author

qxj006 commented Apr 10, 2019

Screenshot_20190410_091001_cc12356 xlyyf
<View style={styles.container} > <ScrollView style={[{flex: 1}]} refreshControl={ <SmartRefreshControl ref={ref => this._refresh = ref} onRefresh={this._onRefresh} onHeaderMoving={this._onHeaderMoving} onPullDownToRefresh={this._onPullDownToRefresh} onReleaseToRefresh={this._onReleaseToRefresh} headerHeight={50} /> } > <View style={{height:1000,backgroundColor:'red'}} > </View> </ScrollView> </View>

@2534290808
Copy link
Member

导航栏设置zIndex可解决此问题

@qxj006
Copy link
Author

qxj006 commented Apr 10, 2019

scrollview加上refreshControl后,设置margintop无效,不加上时有效,有空的话可以试试看

@2534290808
Copy link
Member

我这里设置marginTop是有效的,请提供具体的代码

@futuresnail
Copy link

我现在也有这个问题,以前没有,新版本有这个问题

@loadmore
Copy link

试试给导航栏设置 elevation 值 @qxj006

@futuresnail
Copy link

给scrollView或者FlatList外层包一层VIew
<View
removeClippedSubviews={true}
style={{flex:1,overflow:'hidden'}}
>
...

完美解决

1 similar comment
@futuresnail
Copy link

给scrollView或者FlatList外层包一层VIew
<View
removeClippedSubviews={true}
style={{flex:1,overflow:'hidden'}}
>
...

完美解决

@jungleyu
Copy link

导航栏设置zIndex可解决此问题

我的设置了没用

@Ayaybob
Copy link

Ayaybob commented Jul 25, 2019

导航栏设置zIndex可解决此问题

我在其他页面设置没问题, 但是在createBottomTabNavigator创建的标签页里zIndex是失效的

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

No branches or pull requests

6 participants