React Native 加载base64图片
2018-07-27 本文已影响5人
JsLin_
const {base64Image } = this.props;
let baseImg=`data:image/png;base64,${base64Image}`;
<Image style={styles.rightImage} source={{uri:baseImg}}/>
const {base64Image } = this.props;
let baseImg=`data:image/png;base64,${base64Image}`;
<Image style={styles.rightImage} source={{uri:baseImg}}/>