Created
June 26, 2019 01:41
-
-
Save youngjuning/6df1c1ba9f9b2b82209804b243265e63 to your computer and use it in GitHub Desktop.
边框半透明、内容透明
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { StyleSheet, View } from 'react-native' | |
class App extends Component { | |
public render() { | |
return ( | |
<View style={styles.container} /> | |
) | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
backgroundColor: 'rgba(255, 255,255, 0)', | |
borderBottomWidth: 100, | |
borderColor: 'rgba(0, 0, 0, 0.3)', | |
borderLeftWidth: 50, | |
borderRightWidth: 50, | |
borderStyle: 'solid', | |
borderTopWidth: 100, | |
flex: 1, | |
}, | |
}) | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment