react-native-camera

react-native-image-picker vs expo ImagePicker

ⅰ亾dé卋堺 提交于 2021-02-18 22:09:31
问题 I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. I am following the documentation: https://github.com/react-native-community/react

react-native-image-picker vs expo ImagePicker

[亡魂溺海] 提交于 2021-02-18 22:06:03
问题 I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. I am following the documentation: https://github.com/react-native-community/react

react-native-image-picker vs expo ImagePicker

青春壹個敷衍的年華 提交于 2021-02-18 22:05:23
问题 I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. I am following the documentation: https://github.com/react-native-community/react

How do I upload an image taken by React-Native-camera to Firebase storage?

◇◆丶佛笑我妖孽 提交于 2021-02-08 06:02:35
问题 takePicture = async function() { if (this.camera) { const options = { quality: 0.5, base64: true, mirrorImage: true }; const data = await this.camera.takePictureAsync(options) this.setState({path: data.uri}) } } takePicture is the function to capture the image. Now I want to save the captured image and upload it to Firebase storage. this.setState({path: data.uri}) updates the path to clicked Image's location. How do I use react native fetch blob to upload my image in firebase storage? Please

Delay on the capture of an image - React Native Camera / Expo Camera

只谈情不闲聊 提交于 2020-08-27 02:31:13
问题 I am trying to realize the same functionnality as in Facebook or Instagram: Preview the image taken by the camera instantly At this point, my taken is correctly taken when this function is called : takePicture = async function() { if (this.camera && this.state.isConnected === true) { const options = { quality: 0, base64: false }; const data = await this.camera.takePictureAsync(options); this.toLoading(data.uri); } }; As displayed here, camera quality option is set to 0 to assure that the

Delay on the capture of an image - React Native Camera / Expo Camera

早过忘川 提交于 2020-08-27 02:30:40
问题 I am trying to realize the same functionnality as in Facebook or Instagram: Preview the image taken by the camera instantly At this point, my taken is correctly taken when this function is called : takePicture = async function() { if (this.camera && this.state.isConnected === true) { const options = { quality: 0, base64: false }; const data = await this.camera.takePictureAsync(options); this.toLoading(data.uri); } }; As displayed here, camera quality option is set to 0 to assure that the

Front Facing Camera does not Auto Focus or Manually Focus

我只是一个虾纸丫 提交于 2020-01-15 05:22:33
问题 Current Behaviour I'm using react-native-camera with iPads/iPhones and I use the front-facing camera to scan barcodes (Code39, Code128, QR, etc..) However when using the front-facing camera, it does not focus on the barcode or anything I put mildly close to the camera. The rear camera works absolutely perfectly however the front camera does not. I have not been able to test android as I'm not building for android purely just iOS. I can't seem to find any information on getting the front

How do I access the react-native-camera's video capabilities?

偶尔善良 提交于 2020-01-14 05:25:07
问题 I've been attempting to get the react-native-camera's video feature to work, but and have tried a vast number of methods but keep getting the same errors. Here is my code: class MainCamera extends Component { constructor() { super(); this.render = this.render.bind(this) this.state = { cameraType: Camera.constants.Type.back } } render() { return ( <View style={styles.container}> <Camera ref='camera' style={styles.preview} aspect={Camera.constants.Aspect.fill} type={this.state.cameraType}