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

How to navigate to Camera Roll by default #1081

Closed
pisacode opened this issue Jul 27, 2019 · 5 comments
Closed

How to navigate to Camera Roll by default #1081

pisacode opened this issue Jul 27, 2019 · 5 comments

Comments

@pisacode
Copy link

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.24.0
  • react-native v0.59.8

Platform

Tell us to which platform this issue is related

  • iOS
  • Android

How can we navigate user to Camera Roll when image picker is prompted.

Whatsapp is directing users to camera roll by default. User mostly goes to camera roll to pick files, therefore, making user to choose camera roll everytime might not be the best experience. Is it possible to this with this package?

Love react-native-image-crop-picker? Please consider supporting our collective:
👉 https://opencollective.com/react-native-image-crop-picker/donate

@ivpusic
Copy link
Owner

ivpusic commented Jul 27, 2019

currently not possible

@caojianfeng
Copy link

What about now? @ivpusic

@cletter7
Copy link

Is it possible now @ivpusic ?

@billxie1988
Copy link

Try this on iOS work for me #1983

-(void)viewDidLoad {
    ...
    [self directPushViewAlbumController];
    ...
}

-(void)directPushViewAlbumController {
    NSBundle *assetBundle = [NSBundle bundleForClass:[QBImagePickerController class]];
    NSString *bundlePath = [assetBundle pathForResource:@"QBImagePicker"     ####ofType:@"bundle"];
    if (bundlePath) {
        assetBundle = [NSBundle bundleWithPath:bundlePath];
    }
   
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"QBImagePicker" bundle: assetBundle];
    QBAssetsViewController *assetsViewController = [storyboard instantiateViewControllerWithIdentifier:@"QBAssetsViewController"];
   
    assetsViewController.imagePickerController = self.imagePickerController;
    assetsViewController.assetCollection = self.assetCollections[0];
   
    [self.navigationController pushViewController:assetsViewController animated:NO];
}

@hdjhdjhdj
Copy link

Is it possible now @ivpusic ?

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

6 participants