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



我在将图像uri传递给另一个screnn 时出现此错误

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

最新更新