Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12 无法打开相机 #252

Open
imengyu opened this issue Nov 15, 2022 · 2 comments
Open

Android 12 无法打开相机 #252

imengyu opened this issue Nov 15, 2022 · 2 comments

Comments

@imengyu
Copy link

imengyu commented Nov 15, 2022

问题说明:

在 Android 12 上无法打开相机,调用后无任何报错或值返回。这个错误在小米、华为、vivo上都有发生,经过检查出问题的手机Android 版本都是Android 12,Android 11的手机正常。

示例代码:

import SyanImagePicker from 'react-native-syan-image-picker';

...

SyanImagePicker.openCamera({
      imageCount: 1,
      compress: true,
      showCropCircle: true,
      isCrop: true,
}, (err, photos) => {
  if (err)
    console.log(err);
  else
    console.log(photos[0]);
});
@kuloud
Copy link

kuloud commented Dec 12, 2022

加上queries

`


        </action>
    </intent>
    <intent>
        <action android:name="android.media.action.ACTION_VIDEO_CAPTURE">

        </action>
    </intent>
</queries>

`

@crly
Copy link

crly commented Dec 16, 2022

请问这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants