Skip to content

Instantly share code, notes, and snippets.

@youngjuning
Created June 26, 2019 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youngjuning/6df1c1ba9f9b2b82209804b243265e63 to your computer and use it in GitHub Desktop.
Save youngjuning/6df1c1ba9f9b2b82209804b243265e63 to your computer and use it in GitHub Desktop.
边框半透明、内容透明
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