react-native-multiple-image-picker icon indicating copy to clipboard operation
react-native-multiple-image-picker copied to clipboard

After selecting an image in the simulator, it doesn't close.

Open dkahdwk opened this issue 2 years ago • 14 comments

Steps to Reproduce

  1. Operate MultipleImagePicker.openPicker.
  2. The image selection modal opens.
  3. After selection, it cannot proceed to the next without any errors.
  4. But, it works normally on real devices.
  • It doesn't go to the next step. 스크린샷 2021-10-29 오후 12 45 59

code

    // handler
    const handleImagePicker = async () => {
        try {
            const image = await MultipleImagePicker.openPicker({
                // selectedAssets: images,
                usedCameraButton: true,
                isExportThumbnail: true,
                maxVideo: 1,
                maxSelectedAssets: 4,
                doneTitle: '완료',
                cancelTitle: '취소',
                tapHereToChange: '변경하려면 여기를 누르세요.',
                singleSelectedMode: false
                // selectedColor: '#f9813a',
            });
        } catch (e) {
            console.log('error', e);
        } finally {
            console.log('finally')
        }
    };

Demo

Since it is a corporate project, it is not possible to share a reproduction of the demo...

Environment

  • react-native-multiple-image-picker: 0.4.7
  • react-native version: 0.64.2
  • iOS/Android/Windows version: ios simulator
  • Does this reproduce on a debug build or release build? yes
  • Does this reproduce on a simulator, or only on a physical device? simulator

dkahdwk avatar Oct 29 '21 04:10 dkahdwk

@baronha I need your help! Am I the only one who has that issue?

dkahdwk avatar Oct 29 '21 07:10 dkahdwk

@baronha I need your help! Am I the only one who has that issue?

@dkahdwk I cannot reproduce this on my simulator. Try upgrading to the latest version 0.4.8. If this problem persists. Please leave a message to let me know.

baronha avatar Oct 29 '21 16:10 baronha

@baronha I need your help! Am I the only one who has that issue?

@dkahdwk I cannot reproduce this on my simulator. Try upgrading to the latest version 0.4.8. If this problem persists. Please leave a message to let me know.

I upgraded the version, but there is still an issue. (xcode 13.0, iPhone12 - IOS15.0)

dkahdwk avatar Oct 30 '21 13:10 dkahdwk

@baronha I need your help! Am I the only one who has that issue?

@dkahdwk I cannot reproduce this on my simulator. Try upgrading to the latest version 0.4.8. If this problem persists. Please leave a message to let me know.

I found out something new! This problem occurs in MacBook m1. MacBook Intel does not cause problems in the same environment. I hope it helps and I hope this problem will be resolved soon.

dkahdwk avatar Nov 01 '21 10:11 dkahdwk

@baronha I need your help! Am I the only one who has that issue?

@dkahdwk I cannot reproduce this on my simulator. Try upgrading to the latest version 0.4.8. If this problem persists. Please leave a message to let me know.

I found out something new! This problem occurs in MacBook m1. MacBook Intel does not cause problems in the same environment. I hope it helps and I hope this problem will be resolved soon.

@dkahdwk Wow. I can't reproduce this error at all on Macbook M1. Because I don't have 🥺. Probably with the help of the other members.

baronha avatar Nov 02 '21 14:11 baronha

Same issue here!

denisamalgama avatar Feb 17 '22 19:02 denisamalgama

same issue, any news here?

kimrborja avatar Jun 27 '22 12:06 kimrborja

Even if it's an m1, build in xcode and use a real device it works fine

nain93 avatar Jun 30 '22 06:06 nain93

I'm also facing same issue, any solution for this ?

Mayur552-choudhary avatar Jul 01 '22 16:07 Mayur552-choudhary

I'm also facing same issue, any solution for this ?

There is no solution. Another library could be a way

dkahdwk avatar Jul 02 '22 06:07 dkahdwk

아이폰에서 xcode로 릴리즈 빌드해서 봐도 안되나요?? @dkahdwk

nain93 avatar Jul 02 '22 07:07 nain93

아이폰에서 xcode로 릴리즈 빌드해서 봐도 안되나요?? @dkahdwk

저 당시에는 안됐었어요! 여러 이슈가 있어서 다른거로 교체하시는걸 추천드려요

dkahdwk avatar Jul 02 '22 07:07 dkahdwk

Well, they say it works on actual device... will just trust that. I'll have to deploy on testflight to see. Thanks!

kimrborja avatar Jul 04 '22 04:07 kimrborja

I created fresh project then try It's working, after I install react-native-maps and update podfile then again loading issue.

require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.0' install! 'cocoapods', :deterministic_uuids => false

target 'testApp' do config = use_native_modules!

React Native Maps dependencies

rn_maps_path = '../node_modules/react-native-maps' pod 'react-native-google-maps', :path => rn_maps_path

Flags change depending on the env values.

flags = get_default_flags()

use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change false to true and then install pods :hermes_enabled => flags[:hermes_enabled], :fabric_enabled => flags[:fabric_enabled], # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." )

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

target 'testAppTests' do inherit! :complete # Pods for testing end

Enables Flipper.

Note that if you have use_frameworks! enabled, Flipper will not work and

you should disable the next line.

use_flipper!()

post_install do |installer| react_native_post_install(installer) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" __apply_Xcode_12_5_M1_post_install_workaround(installer) end end end

Mayur552-choudhary avatar Jul 04 '22 05:07 Mayur552-choudhary

Same issue on ios simulator (iphone13) with mac M1. But works on a real device.

ErangaD avatar Nov 08 '22 07:11 ErangaD

I got same error, it was working before suddenly now it is stuck at "Please wait..." on macbook pro M1 and iphone 13 simulator with ios 13.0... working fine on real iphone device.

MiteshKalal7 avatar Jun 14 '23 05:06 MiteshKalal7

maybe the issue is getting because of this code

installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64" end end

but when i remove it i got another errors :(

MiteshKalal7 avatar Jun 14 '23 10:06 MiteshKalal7

This issue went away after updating xcode to latest version (14.3) for me.

ErangaD avatar Jun 14 '23 10:06 ErangaD

@ErangaD yeah now i think its time to update 14.0 to 14.3 :), will try and let you know

MiteshKalal7 avatar Jun 14 '23 10:06 MiteshKalal7