📜  图像的全宽并保持纵横比反应原生 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:23.658000             🧑  作者: Mango

代码示例1
render() {
    let image = this.props.requireSource;
    const { width, height } = Image.resolveAssetSource(image);
    const ratio = height / width;
    const SCREEN_WIDTH = Dimensions.get('window').width;

    return (
        
    );
}