将图像 uri 发送到另一个屏幕时出现道具错误

Props Error While sending Image uri to another Screen

我在将图像 uri 传递到另一个屏幕时收到此错误

TypeError: undefined is not an object (evaluating '_this3.props.imageuri')

当我们将参数传递给另一个屏幕时,我们可以得到它如下:

const params = this.props.route.params
const imageUri = params?.imageUri // prevent bug if imageUri not avaiable