1

我正在尝试在 React Native 中制作相机胶卷的自定义 listView。我看到当我做'CameraRoll.getPhotos(fetchParams)'时,我可以放一些参数。但是没有排序选项,或者我可以获得文件夹名称。

提前感谢您的建议!

在下面的 CameraRoll.js 中..

var getPhotosParamChecker = createStrictShapeTypeChecker({
  /**
   * The number of photos wanted in reverse order of the photo application
   * (i.e. most recent first for SavedPhotos).
   */
  first: ReactPropTypes.number.isRequired,

  /**
   * A cursor that matches `page_info { end_cursor }` returned from a previous
   * call to `getPhotos`
   */
  after: ReactPropTypes.string,

  /**
   * Specifies which group types to filter the results to.
   */
  groupTypes: ReactPropTypes.oneOf(GROUP_TYPES_OPTIONS),

  /**
   * Specifies filter on group names, like 'Recent Photos' or custom album
   * titles.
   */
  groupName: ReactPropTypes.string,

  /**
  * Specifies filter on asset type
  */
  assetType: ReactPropTypes.oneOf(ASSET_TYPE_OPTIONS),

  /**
   * Filter by mimetype (e.g. image/jpeg).
   */
  mimeTypes: ReactPropTypes.arrayOf(ReactPropTypes.string),
});

似乎没有其他方法需要修复..或者我可以列出图像文件夹吗?

4

1 回答 1

0

在此处输入图像描述

请按照时间戳排序。上图是CameraRoll的输出

于 2017-09-02T06:33:32.333 回答