Render text box with transparent background on top of image in React Native iOS
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to render a block with white text on top of an image in my testing of React Native. But instead i get a black block on top of my image with white text in it. Not what I had expected. How do you render a text block with transparent background? Current result Render function render: function(){ return ( <View style={styles.container}> <Image style={styles.backdrop} source={{uri: 'https://unsplash.com/photos/JWiMShWiF14/download'}}> <Text style={styles.headline}>Headline</Text> </Image> </View> ); ) Stylesheet function var styles =