-
Install dependencies
npm install
-
Start the app
npx expo start
- Open iphone simulator
- Click button "Get photo"
- it shows error
No suitable URL request handler found for ph://CC95F08C-88C3-4012-9D6D-64A413D254B3/L0/001
-[RCTNetworking networkTaskWithRequest:completionBlock:]
RCTNetworking.mm:706
-[RCTImageLoader _loadURLRequest:progressBlock:completionBlock:]
__139-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:priority:attribution:progressBlock:partialLoadBlock:completionBlock:]_block_invoke.159
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread
- comment
if (photoData.assets.length > 0) setPhotoUri(photoData.assets[0].uri);
fromApp.tsx
- uncomment this block of code in
App.tsx
if (photoData.assets.length > 0) {
const assetInfo = await MediaLibrary.getAssetInfoAsync(
photoData.assets[0].id
);
setPhotoUri(assetInfo.localUri || assetInfo.uri);
} else {
setIsEmpty(true);
}