From 921f45f0bdc13eb37835762621f4900c04fee291 Mon Sep 17 00:00:00 2001 From: mx1700 Date: Sun, 4 Aug 2019 17:41:00 +0800 Subject: [PATCH] readme --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f35fd98 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# 胶囊日记 App + +## 已知问题 + +### iOS 上的问题 +1. image picker 在与 ReactNativeNavigation 共存时,会导致 image picker 在选择照片时不自动滚动到视图底部 +(底部的照片是最近的照片),可以通过修改 image picker 源码解决 + +文件 node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePicker/QBAssetsViewController.m +107 行 +``` + // Scroll to bottom +- if (self.fetchResult.count > 0 && self.isMovingToParentViewController && !self.disableScrollToBottom) { ++ if (self.fetchResult.count > 0 && !self.disableScrollToBottom) { + NSIndexPath *indexPath = [NSIndexPath indexPathForItem:(self.fetchResult.count - 1) inSection:0]; + [self.collectionView scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionTop animated:NO]; + } +``` \ No newline at end of file