How can I upload a photo with Expo?
问题 I'm making an app with Expo and want to let the user take a photo or pick one from their camera roll and upload it to my server. How do I do this? 回答1: Use the Expo ImagePicker API to display either the camera or the camera roll and get back information about the selected image: async function takeAndUploadPhotoAsync() { // Display the camera to the user and wait for them to take a photo or to cancel // the action let result = await ImagePicker.launchCameraAsync({ allowsEditing: true, aspect: