【发布时间】:2018-10-19 20:06:31
【问题描述】:
我有一个这样的sn-p
takePicture = async function() {
if (this.camera) {
this.camera
.takePictureAsync()
.then(data => {
FileSystem.moveAsync({
from: data.uri,
to: `${FileSystem.documentDirectory}photos/Photo_${
this.state.photoId
}.jpg`
}).then(() => {
this.setState({
photoId: this.state.photoId + 1
});
Vibration.vibrate();
});
});
}
};
现在我的问题是我不知道如何将 ImageManipulator 插入此函数。我的目的是在 takePictureAsync() 之后,将照片调整为 108x192,然后将这张照片移动到 documentDirectory。非常感谢
【问题讨论】:
标签: react-native camera expo