react-native-view-shot

Not able to find Image in cache using npm react-native-view-shot

耗尽温柔 提交于 2019-12-02 04:47:44
问题 I am using npm react-native-view-shot to capture the view in the image and save locally on the device. When I try to take snap-shot using the following code I get path but not image at the location, below is code and output Path:- file:///data/user/0/com.caryn/cache/ReactNative-snapshot-image5936120548912611616.jpg captureRef(this.ref, this.state.value) .then(res => this.state.value.result !== "file" ? res : new Promise((success, failure) => // just a test to ensure res can be used in Image