React Native中的zIndex
如何处理zIndex?
我试图从scrollview中指定最大的数字,但它仍然在底部(
没有ScrollView它看起来像这样,但我需要滚动到图像。
谢谢
这已经在0.30(参见提交更改 )和android在0.31( 更改 )的iOS中实现,
我已经为我如何使用它做了一个简单的示例组件:
'use-strict'; import React, { Component } from 'react'; const { View, StyleSheet } = require('react-native'); const styles = StyleSheet.create({ wrapper: { flex:1, }, back: { width: 100, height: 100, backgroundColor: 'blue', zIndex: 0 }, front: { position: 'absolute', top:25, left:25, width: 50, height:50, backgroundColor: 'red', zIndex: 1 } }); class Layers extends Component { constructor(props) { super(props); } render() { return ( <View style={styles.wrapper}> <View style={styles.back}></View> <View style={styles.front}></View> </View> ); } } module.exports = Layers;
- 如何使用node.js和socket.io将文件从iPhone发送到另一个iPhone?
- 是否可以将React Native与socket.io结合使用
- 使用Node.js将audiostream式传输到html5audio标签,并绕过iOS限制
- 离子build立IOS没有什么,只是下降到下一行
- 从自定义node.js API中检索Azure Blob
- 使用NodeJS服务器devise移动身份validation
- 我可以使用APNauthentication密钥.p8文件与PHP发送iOS推送通知?
- Firebase手电筒 – Bonsai-ElasticSearch API调用来执行search
- 离子错误:找不到模块'dezalgo'