我在有天赋的聊天中使用 imagePicker。我想将拍摄的图像从相机显示到另一个班级。我想访问另一个类的源这里是代码
renderCameraImage = () => (
<Image
style={{ flex: 1 }}
resizeMode="contain"
source={{ uri: this.state.filePath.uri }}
/>
)
如果我使用
source={{ uri: this.props.filePath.uri }}
这肯定行不通。我怎样才能访问源?