0

I am trying to access the gallery using the official CameraRoll API guide. I am unable to render the component because the following modules are not provided in the official doc:

const CameraRollView = require('./CameraRollView');

const AssetScaledImageExampleView = require('./AssetScaledImageExample');

I tried to google for examples regarding CameraRollView and AssetScaledImageExampleView but found nothing. My question is where can I find the boilerplate code for these two modules? I am still learning React-Native so I am not sure how I am suppose to go about coding these two modules.

4

1 回答 1

2

在示例代码上方,标题“示例”旁边,您应该看到一个链接“在 GitHub 上编辑”,该链接指向 GitHub 上该示例的源代码。从那里,您可以导航到所需文件的位置。

对于您想要的特定文件,它们位于以下链接:

CameraRollView.js
AssetScaledImageExample

于 2016-04-12T18:47:02.313 回答