I am using react-native-camera in my react-native app and everything works well, however when I take a photo the picture saves on my device which I do not want, the image is supposed to be sent to an api but NOT saved on my device, anyone know how I can get it to not save on the device?
render() {
return(
<View style={styles.container}>
<Camera
style={styles.camera}
ref={ref => {this.camera = ref;}}
type={Camera.constants.Type.back}
flashMode={Camera.constants.FlashMode.on}
orientation={Camera.constants.Orientation.landscapeLeft}>
<TouchableOpacity onPress={this.takePicture.bind(this)} style={{zIndex: 100}}>
<View style={styles.cameraButton}></View>
</TouchableOpacity>
</Camera>
</View>
);
}
takePicture()
{
this.camera.capture()
.then((data) => this.sendData(data))
.catch(err => console.error(err));
}