zio/stable
Paul Frazee 2022-12-02 10:40:22 -06:00
parent 90942ae146
commit ea27b9ed08
5 changed files with 18 additions and 20 deletions

View File

@ -540,6 +540,6 @@ SPEC CHECKSUMS:
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
Yoga: 99652481fcd320aefa4a7ef90095b95acd181952 Yoga: 99652481fcd320aefa4a7ef90095b95acd181952
PODFILE CHECKSUM: 95dad1cd550c9983fb5c851af858b806e8250502 PODFILE CHECKSUM: cf94853ebcb0d8e0d027dca9ab7a4ede886a8f20
COCOAPODS: 1.11.3 COCOAPODS: 1.11.3

View File

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

View File

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

View File

@ -18,8 +18,8 @@ export class UserLocalPhotosModel {
} }
private async _getPhotos() { private async _getPhotos() {
runInAction(() => { CameraRoll.getPhotos({first: 20}).then(r => {
CameraRoll.getPhotos({first: 20}).then(r => { runInAction(() => {
this.photos = r.edges this.photos = r.edges
}) })
}) })

View File

@ -23,9 +23,14 @@ export const PhotoCarouselPicker = ({
cropping: true, cropping: true,
width: 1000, width: 1000,
height: 1000, height: 1000,
}).then(item => { }).then(
setSelectedPhotos([item.path, ...selectedPhotos]) item => {
}) setSelectedPhotos([item.path, ...selectedPhotos])
},
_err => {
// ignore
},
)
}, [selectedPhotos, setSelectedPhotos]) }, [selectedPhotos, setSelectedPhotos])
const handleSelectPhoto = useCallback( const handleSelectPhoto = useCallback(
@ -58,14 +63,7 @@ export const PhotoCarouselPicker = ({
}) })
result.push(img.path) result.push(img.path)
} }
setSelectedPhotos([ setSelectedPhotos([...result, ...selectedPhotos])
// ...items.reduce(
// (accum, cur) => accum.concat(cur.sourceURL!),
// [] as string[],
// ),
...result,
...selectedPhotos,
])
}) })
}, [selectedPhotos, setSelectedPhotos]) }, [selectedPhotos, setSelectedPhotos])