Here I am trying to get thumbnail for asset and i am not able to do it :( I am getting this error:
No visible @interface for 'PHImageManager' declares the selector 'requestImageForAsset:targetSize:options:resultHandler:'
I am trying to just add this code block:
PHCachingImageManager *imageManager = [[PHCachingImageManager alloc] init];
[imageManager requestImageForAsset: asset
targetSize: CGSizeMake(80, 80)
options: nil
resultHandler: ^(UIImage *result, NSDictionary *info) {
//do something here
}];
into here(You can get the bigger picture here): https://github.com/react-native-cameraroll/react-native-cameraroll/blob/7c269a837d095a2cb5f4ce13b54ab3060455b17f/ios/RNCCameraRollManager.m#L325
I am trying to get thumbnail from original asset.