2016-04-29 48 views

回答

3
<Image source={imageSource} style={{position: "absolute", bottom: 0, right: 0}}/> 
4

您可以使用justifyContent: 'flex-end'來實現這一目標:

const withWatermark = (asset, logo) => (
    <Image style={{ width: 200, height: 200, justifyContent: 'flex-end' }} source={asset}> 
    <Image style={{ width: 20, height: 20, alignSelf: 'flex-end' }} source={logo} /> 
    </Image> 
); 
+0

謝謝,它的工作原理.. :) –

相關問題