react-native-SmartRefreshLayout icon indicating copy to clipboard operation
react-native-SmartRefreshLayout copied to clipboard

覆盖导航栏问题

Open qxj006 opened this issue 6 years ago • 10 comments

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

qxj006 avatar Apr 10 '19 00:04 qxj006

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>

qxj006 avatar Apr 10 '19 01:04 qxj006

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

2534290808 avatar Apr 10 '19 01:04 2534290808

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

qxj006 avatar Apr 10 '19 01:04 qxj006

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

2534290808 avatar Apr 15 '19 05:04 2534290808

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

futuresnail avatar Jun 05 '19 10:06 futuresnail

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

loadmore avatar Jun 18 '19 02:06 loadmore

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

futuresnail avatar Jun 28 '19 08:06 futuresnail

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

futuresnail avatar Jun 28 '19 08:06 futuresnail

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

我的设置了没用

jungleyu avatar Jul 18 '19 10:07 jungleyu

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

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

Ayaybob avatar Jul 25 '19 02:07 Ayaybob