fixing add photo using camera

zio/stable
João Ferreiro 2022-11-29 16:11:17 +00:00
parent 23ea592987
commit 87d37f9df9
3 changed files with 11 additions and 6 deletions

View File

@ -455,7 +455,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = app/app.entitlements;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = B3LX46C5HS;
DEVELOPMENT_TEAM = 28H695D9YK;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
INFOPLIST_FILE = app/Info.plist;
@ -468,7 +468,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = xyz.blueskyweb.app;
PRODUCT_BUNDLE_IDENTIFIER = "xyz.blueskyweb.app-";
PRODUCT_NAME = app;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
@ -484,7 +484,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = app/app.entitlements;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = B3LX46C5HS;
DEVELOPMENT_TEAM = 28H695D9YK;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
INFOPLIST_FILE = app/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
@ -496,7 +496,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = xyz.blueskyweb.app;
PRODUCT_BUNDLE_IDENTIFIER = "xyz.blueskyweb.app-";
PRODUCT_NAME = app;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";

View File

@ -48,9 +48,11 @@
</dict>
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>NSPhotoLibraryUsageDescription</key>
<string></string>
<key>NSLocationWhenInUseUsageDescription</key>
<key>NSCameraUsageDescription</key>
<string></string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>

View File

@ -22,7 +22,10 @@ export const PhotoCarouselPicker = observer(function PhotoCarouselPicker({
<TouchableOpacity
style={[styles.galleryButton, styles.photo]}
onPress={() => {
openCamera({multiple: true, maxFiles: 4}).then()
openCamera({multiple: true, maxFiles: 4}).then(item => {
console.log(item)
setSelectedPhotos([item.path, ...selectedPhotos])
})
}}>
<FontAwesomeIcon
icon="camera"